What I have is following:
<xsl:variable name="myvar" select=".//spss:category[((not @varName) or @varName=$colVarName) and @text=$series]/spss:cell/@text"/>
What it should do is select the text of the spss:cell
's text-Attribute as long as it is a child of a spss:category
that has
- either a
varName
Attribute with a value equal to$colVarName
- OR no
varName
Attribute at all
What is happening is following error message (sorry translating here, so just the gist of it):
Expected Token ')'. Found Token '@'.
.//spss:category[((not -->@<-- varName) or @varName=$colVarName...
Problem Solved! (See below)