xsl-list
[Top] [All Lists]

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

2013-03-23 10:02:40
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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--