[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

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"/>
The <description> in the second .xml file is folllowing:

   <u>Some text <b><i>to test</i></b></u>

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>
     <xsl:apply-templates select="@*|node()"/>

This templae does work for the <u> in the first xml, but not in the second .xml.

Any suggestions ?




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

Current Thread