xsl-list
[Top] [All Lists]

Re: [xsl] Typing Variable as AnyURI - Problem

2012-09-13 02:36:25
If I type the variable VMSCall as anyURI I get

net.sf.saxon.trans.XPathException: A sequence of more than one item is
not allowed as the value of variable $VMScall

       <xsl:variable name="VMScall" ><xsl:apply-templates/></xsl:variable>

Have a think about what the actual contents of VMScall will be for that input.

When learning XSLT 1.0, the main thing to grasp is template matching.
For XSLT 2.0, it's sequences of items (assuming you know template
matching)



-- 
Andrew Welch
http://andrewjwelch.com

--~------------------------------------------------------------------
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>
--~--

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