[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Hi,
I need to apply-templates on a second .xml file referenced by a first .xml where which references a .xsl sheet.
I try following:
...
<xsl:apply-templates select="document(@tag)/tag/description/@*|node()">
<xsl:with-param name="level" select="$level"/>
</xsl:apply-templates>
...
The <description> in the second .xml file is folllowing:
The result of the above transformation is that only the text is copied ,not the tags contained in <description>
The .xsl does contain templates to 'catch' these tags, for example , for the <u> tag:
This templae does work for the <u> in the first xml, but not in the second .xml.
Any suggestions ?
Regards,
Stefan
_________________________________________________________________
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
[xsl] :apply-templates in another document
Subject: [xsl] :apply-templates in another document From: "Stefan Geelen" <stefangeelen@xxxxxxxxxxx> Date: Fri, 16 May 2003 14:31:08 +0000 |
Hi,
I need to apply-templates on a second .xml file referenced by a first .xml where which references a .xsl sheet.
I try following:
...
<xsl:apply-templates select="document(@tag)/tag/description/@*|node()">
<xsl:with-param name="level" select="$level"/>
</xsl:apply-templates>
...
The <description> in the second .xml file is folllowing:
<description> <u>Some text <b><i>to test</i></b></u> </description>
The result of the above transformation is that only the text is copied ,not the tags contained in <description>
The .xsl does contain templates to 'catch' these tags, for example , for the <u> tag:
<xsl:template match="u"> <xsl:comment>OK ;</xsl:comment> <u> <xsl:apply-templates select="@*|node()"/> </u> </xsl:template>
This templae does work for the <u> in the first xml, but not in the second .xml.
Any suggestions ?
Regards,
Stefan
_________________________________________________________________
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] extensions and XSLT 2.0, Frédéric Laurent | Thread | Re: [xsl] :apply-templates in anoth, Jeni Tennison |
[xsl] extensions and XSLT 2.0, Frédéric Laurent | Date | Re: [xsl] XSLT In the Build Process, Mike Haarman |
Month |
Keywords