R
RolfK
Dear ALL
I have defined a list type in a schema and validation works well !
However, I could not succeed to get a single item out of the space
separted list.
I'm using the schema aware version of SAXON 9.1
My element in questions looks like this:
<Agenda CSSColorNames="red green"/>
My schema part (snipet) for the attribute is this:
<xsi:simpleType name="tCSSColorNames">
<xsi:list>
<xsi:simpleType>
<xsi:restriction base="xsi:string">
<xsi:enumeration value="aqua"/>
...... <xsi:enumeration
value="teal"/>
</xsi:restriction>
</xsi:simpleType>
</xsi:list>
</xsi:simpleType>
Acessing the attribute and using tokenize() leads to an error.
How to access the nth element defined in the attribute
CSSColorNames ??
Basically I imagine to do something like this to do this:
<xsl:variable select="Agenda/@CSSColorNames[position()=2]"/>
Thanks a lot
Rolf
I have defined a list type in a schema and validation works well !
However, I could not succeed to get a single item out of the space
separted list.
I'm using the schema aware version of SAXON 9.1
My element in questions looks like this:
<Agenda CSSColorNames="red green"/>
My schema part (snipet) for the attribute is this:
<xsi:simpleType name="tCSSColorNames">
<xsi:list>
<xsi:simpleType>
<xsi:restriction base="xsi:string">
<xsi:enumeration value="aqua"/>
...... <xsi:enumeration
value="teal"/>
</xsi:restriction>
</xsi:simpleType>
</xsi:list>
</xsi:simpleType>
Acessing the attribute and using tokenize() leads to an error.
How to access the nth element defined in the attribute
CSSColorNames ??
Basically I imagine to do something like this to do this:
<xsl:variable select="Agenda/@CSSColorNames[position()=2]"/>
Thanks a lot
Rolf