[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] :apply-templates in another document
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|