|
Subject: Re: Formatting an element at the end of PCDATA From: Silveste® Poza®nik <silvester.pozarnik@xxxxxxxxxxx> Date: Mon, 13 Sep 1999 10:02:20 -0700 |
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
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Formatting an element at the end of, Cees Dekker | Thread | Does IE5 support named template?, Michele Lee |
| RE: expressing DTDs with UML, Sam.Walker | Date | RE: Comparing content, Ben Robb |
| Month |