Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries [Thread Prev] >Thread Next - Re: XSLT 2.0 space separated list type access with Saxon 9.1 -sa -val XSLT 2.0 space separated list type access with Saxon 9.1 -sa -valTo: NULL Date: 2/6/2009 3:46:00 AM 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 | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
