views:

36

answers:

1

What is the difference between using as="element(data)+" and as="element(data)" in xsl:variable. The below XSL solution works if use "+" but not when i use "". Can some one clarify.

+1  A: 
element(data)+

means a sequence of one or more data elements. That is, the sequence cannot be empty.

element(data)*

means a sequence of zero or more `data elements. That is, the sequence can be empty.

Dimitre Novatchev
Thanks for clarifying.
Rachel