[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] Embeding xml inside another xml using xslt


Subject: Re: [xsl] Embeding xml inside another xml using xslt
From: David Carlisle <davidc@xxxxxxxxx>
Date: Mon, 28 Feb 2005 15:19:45 GMT

Your desired output is not well formed XML so XSLT makes it difficult to
create. Do you really want this forat, it won't be possible to process
it with any XML tool.

You can't have an XML declaration <?xml ... anywhere other than the
first few characters of the document.

If you don't want the xml declaration there then your xslt just needs

<address>
<xsl:copy-of select="document('the2ndfile.xml')"/>
</address>

and the contents will be copied in to the result.

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________


Current Thread
Keywords