[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: NMTOKENS and xsl:key

Subject: RE: NMTOKENS and xsl:key
From: "Houghton,Andrew" <houghtoa@xxxxxxxx>
Date: Sun, 7 Jan 2007 19:59:20 -0500
RE:  NMTOKENS and xsl:key
> From: Michael Kay [mailto:mike@xxxxxxxxxxxx]
> Sent: 07 January, 2007 19:52
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: RE:  NMTOKENS and xsl:key
>
> You don't say whether this is a schema-aware stylesheet. If
> it is, then the type xs:NMTOKENS will be recognized, the
> typed value of @target will be a sequence of tokens, and
>
> <xsl:key match="item" use="@target"/>
>
> will index the value of each token.
>
> If it's not schema-aware then you need to split the value "by hand":
>
> <xsl:key match="item" use="tokenize(@target, '\s+')"/>

I'm not using a schema-aware stylesheet, but if I were
using a schema-aware stylesheet, the source document
doesn't have a DTD or XML schema associated with it.
So am I correct in assuming that I would still have to
use the tokenize() solution?


Thanks, Andy.

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.