Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


XSLT 2.0 space separated list type access with Saxon 9.1 -sa -val

From: RolfK <Rolf.Kemper@--.-----.--->
To: 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


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent