xsl-list
[Top] [All Lists]

:apply-templates in another document

2003-05-16 07:31:08
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



<Prev in Thread] Current Thread [Next in Thread>