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

RE: recursively including xml-files

Subject: RE: recursively including xml-files
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Wed, 2 Feb 2000 18:22:33 -0000
including xml files
I think if you replaced xsl:copy-of by xsl:apply-templates it might just
work...

Mike Kay

> -----Original Message-----
> From: Rainer Kerl [mailto:rainer_kerl@xxxxxxxxxxxxxxx]
> Sent: 02 February 2000 17:13
> To: Xsl-List@Mulberrytech. Com
> Subject: recursively including xml-files
> 
> 
> hello,
> 
> i would like to write a template which is able to include xml-files
> into another xml-file. the file which should be included is specified
> by some kind of 'link'. an example:
> 
> a.xml
> 
> 
> <hello>
> 	<my-include>b.xml</my-inlcude>
> </hello>
> 
> 
> b.xml
> 
> <my>friend</friend>
> 
> 
> result:
> 
> <hello>
> 	<my>friend</friend>
> </hello>
> 
> 
> 
> i have a working template for that:
>  
> <xsl:template match="my-include">
>     <xsl:copy-of select="document(self::node())"/>
> </xsl:template>
> 
> <xsl:template match="*|@*|comment()|processing-instruction()|text()">
>   <xsl:copy>
>     <xsl:apply-templates
>      select="*|@*|comment()|processing-instruction()|text()"/>
>   </xsl:copy>
> </xsl:template>
> 
> 
> now, my problem. what if b.xml has also a <my-include>-element?
> how do i recursively include this files? is this possible?
> it would be very nice, if somebody could give me a hint.
> thanks.
> 
> rainer
> 
> 
> 
> 
>                    Rainer Kerl       mailto: rainer_kerl@xxxxxxxxxx
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 


 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.