xsl-list
[Top] [All Lists]

RE: [xsl] How to use generate-id() inside an xsl:function without a node available?

2007-02-27 16:59:02
It's not allowed to. In that respect, XSLT and XQuery are not purely
functional: node creation has a limited side-effect. This 
comes out most strongly in XQuery, where you will see plenty 
of tests in the test suite like 

count(for $i in 1 to 10 return <a/>)

I meant of course to include an operator that eliminates duplicates, for
example

count(./(for $i in 1 to 10 return <a/>))


Michael Kay
http://www.saxonica.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>
--~--



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