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

Re: Copying nodes from other than the input file

Subject: Re: Copying nodes from other than the input file
From: Joerg Heinicke <joerg.heinicke@xxxxxx>
Date: Tue, 06 Aug 2002 09:57:02 +0200
xslt copy other than current
Hello Maik,

yesterday I solved (at least I hope so) the same problem for Markus. He had declared a default namespace in the second file. If you say you have a valid XHTML file, it sounds like the same problem. So you have to declare the XHTML namespace in the XSLT. If you use xhtml as namespace prefix, the XPath would look like

<xsl:copy-of select="document(MetaData/Technical/Location) /xhtml:html/xhtml:head"/>

Does this help?



Maik Stührenberg wrote:

last week I asked for a possibility to copy nodes from a second input file. I tried the solution given me from Joerg Heinicke (thanks) <xsl:copy-of select="document(MetaData/Technical/Location)/html/head"/> but it does not work, neither with Saxon 6.52, 7.1 or XSLTProc.
Using <xsl:copy-of select="document(MetaData/Technical/Location)"/> works but no other XPath expression. I tested it with a valid XHTML file (taken

from W3C pages). Any further ideas what's going wrong?


Maik Stührenberg


System Development
Fon  +49(0)341-979-7419
Fax  +49(0)341-979-7409

XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list

Current Thread


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.
First Name
Last Name
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.