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

Processing types of type QName

Subject: Processing types of type QName
From: Dan Vint <dvint@xxxxxxxxx>
Date: Tue, 19 Aug 2003 07:10:44 -0700
types of type


We are considering the use of QName types for our enumerated values (code lists). We want to be able to determine the standard values from those added by members, so we want member values to be prefixed.

In theory this seems to work nice, but in XSLT it doesn't seem to allow for the normal processing that I would expect. I would really expect to be able to use name(), local-name(), etc against the text() node value but that doesn't seem to work. Is this something that I have to wait for v2 of XSLT?

Our code values are in the element content, so an element is of an enumerated type. If I use a template that matches this element, a simple <xsl:value-of select='.'/> gets me the code value acord:A, <xsl:value-of select="name(.)"/> gets me the element name of the template match statement. <xsl:value-of select="name(text())"/> gets a value of #text in Stylus studio.

I can use the starts-with() function to detect a standard prefix, and contains() to detect a prefix of given value or at least the use of the ':', but I would really like a more flexible approach and I need to be able to translate the prefix back into the namespace URI as well.

Any ideas?

..dan




XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list


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.