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

Re: [xsl] creating a temporary document from multiple inputs


Subject: Re: [xsl] creating a temporary document from multiple inputs
From: David Carlisle <davidc@xxxxxxxxx>
Date: Sat, 23 Mar 2013 15:02:56 +0000

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