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

Re: How to use document() of doc() function with copy

Subject: Re: How to use document() of doc() function with copy idiom, or how to acc
From: Abel Braaksma Online <abel.online@xxxxxxxxx>
Date: Tue, 25 Jul 2006 16:36:02 +0200
saxon8 name of input document
Hi Colin,

I must have been blindfolded for some hours! I have resolved it for now. Inside the variable, I used <xsl:value-of select="doc(xxx)" />, which, of course, dumped out only the textual content. I replaced it with <xsl:copy-of select="doc(xxx)" /> and now it works.

Thanks for quickly replying. The dot in the value-of construct is fixed, should be $input-file instead.


Colin Adams wrote:

Namespace of input xml document: this is equal to the current xslt document (just because saxon needs an input document. I don't actually use it)

Saxon (8 - which you appear to be using) doesn't need an intput document. You can supply the name of an initial template instead.

<!-- load the documents -->
<xsl:variable name="documents">
<input-filename><xsl:value-of select="." /></input-filename>

What do you expect to get from that xsl:value-of?

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.