Subject:xsl:element - qname Author:Sebastian Feese Date:14 Nov 2006 08:51 AM
HI,
could anybody of you please tell me what I am doing wrong.
I want to create an xml file from a txt file, where the new elements should all have a different name.
But when I use <xsl:element> the way I do I get the follwoing error:
XSL transformation failed - Expected QName.
Subject:xsl:element - qname Author:James Durning Date:14 Nov 2006 11:35 AM Originally Posted: 14 Nov 2006 11:34 AM
If you have 2 spaces in a row, tokenize will give you an empty string. Eg. if you tokenized "ab c d" (2 spaces between c and d, this forum truncates), you'd get "ab", "c", "", "d"
You may need to add a check that the name does not equal the empty string "".