[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

:apply-templates in another document

Subject: :apply-templates in another document
From: "Stefan Geelen" <stefangeelen@xxxxxxxxxxx>
Date: Fri, 16 May 2003 14:31:08 +0000
stefan geelen
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.