I have the following:
<xsl:variable name="myvar" select=".//spss:category[((not @varName) or @varName=$colVarName) and @text=$series]/spss:cell/@text"/>
What you need to do is select the text of the spss:celltext-Attribute attribute if it is a child spss:categorythat has
- either a
varNameAttribute with a value equal to$colVarName - OR no
varNameAttribute in general
What happens is the following error message (sorry translating here, so just its gist):
Expected token ')'. Found Token '@'.
.//spss:category[((not → @ <- varName) or @varName = $ colVarName ...
The problem is solved! (see below)
source
share