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

Re: creating a temporary document from multiple inputs

Subject: Re: creating a temporary document from multiple inputs
From: David Carlisle <davidc@xxxxxxxxx>
Date: Sat, 23 Mar 2013 15:02:56 +0000
Re:  creating a temporary document from multiple inputs
On 23/03/2013 14:59, Wolfgang Laun wrote:
Hi David,

I tried this, and the proposed <xsl:variable name="doc"> produces an
error.

<xsl:variable name="paths" as="item()*"> <xsl:sequence select =
"($p1,$p2,$p3)" /> </xsl:variable> <xsl:variable name="doc"
as="document-node()*" select="document($paths)/*"/>

Warning: on line 34 Required item type of value of variable $doc is
document-node(); supplied value has item type element().

Sorry I mis-read your code then copied it without seeing what it did, you should do what I meant not what I wrote, lose the /* at the end.

<xsl:variable name="doc" as="document-node()*" select="document($paths)"/>

this is supposed to be a sequence of document nodes.



David

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.