xsl-list
[Top] [All Lists]

Re: [xsl] Template-matching nodes from input vs nodes in variable based on their position

2015-06-18 00:15:59
On Wed, Jun 17, 2015 at 9:18 PM, Martin Honnen 
martin(_dot_)honnen(_at_)gmx(_dot_)de
<xsl-list-service(_at_)lists(_dot_)mulberrytech(_dot_)com> wrote:
Try
  as="document-node()"

It won't work:

    Error at xsl:variable on line 5 column 51 of stylesheet.xsl:
      XTTE0570: Required item type of value of variable $FOO is
      document-node(); supplied value has item type element()
    Failed to compile stylesheet. 1 error detected.

I use document-node() as the type of a variable when importing an
external XML file into the variable. But in this case, I write the
contents of the variable in the stylesheet itself.
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--

<Prev in Thread] Current Thread [Next in Thread>