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.

Rachel
  • 763
  • 14
  • 29
  • Please explain for your second question what exactly happens when "the solution does not work". Do you get an error message from the XSLT processor? Which one exactly? – Martin Honnen May 27 '10 at 17:06
  • Updated the actual issue i am facing. – Rachel May 27 '10 at 17:37
  • Break up the problem into several smaller ones and ask separate questions. Define the task completely: complete XML document (but the minimal possible), complete XSLT stylesheet (but the minimal possible), a full description of what the transformation must produce and how the output is related to the input. – Dimitre Novatchev May 27 '10 at 21:49

1 Answers1

2
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
  • 240,661
  • 26
  • 293
  • 431