Altova Mailing List Archives


Re: Formatting an element at the end of PCDATA

From: Silveste&reg; Poza&reg;nik <silvester.pozarnik@----------->
To:
Date: 9/13/1999 3:02:00 AM
At 21:30 10.09.99 +0200, you wrote: 
>
> I am having trouble with finding the proper XSL coding for IE5 for the
> following XML code:
> .............<JRNL>Journal of
> physics<CITY>Amsterdam</CITY></JRNL>............. 
> while the element CITY can also occur elsewhere outside JRNL.
>  
> I want to get as output:
>  ...........Journal of physics [Amsterdam]..................
> while for the CITY element outside JRNL no square brackets are allowed.
>  
> The XSL coding to start with for the element CITY outside JRNL is:
>   <xsl:template match="JRNL">
>     <xsl:apply-templates />
>   </xsl:template> 
>   <xsl:template match="CITY">
>    <xsl:apply-templates />
>   </xsl:template> 
>  


Try something like this:

<xsl:template match="JRNL">
    <xsl:apply-templates />
  </xsl:template> 
  <xsl:template match="JRNL//CITY">
   [<xsl:apply-templates />]
  </xsl:template> 


>
> Does someone know how to change this XSL coding to get the wanted result? I
> don't seem to be able to find the proper 'contexting'. Keep in mind the
> inside element JRNL also element like ITAL, BOLD, etc. may occur.
>  
> Regards,
> Cees Dekker
> ILOX
> Netherlands




 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Disclaimer

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.