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

RE: Qualified Attrib Value

Subject: RE: Qualified Attrib Value
From: "Steven Livingstone" <s.livingstone@xxxxxxxxxxxxxx>
Date: Tue, 20 Aug 2002 12:30:47 +0100
attrib values
Hmmm.... I'm not a fan of this idea of breaking up qualified values by
using string manipulation... It's an XPath function and doesn't really
take into consideration the fact it is qualified.

If I wanted to get the values qualified in a given namespace (e.g. they
are part of an enumeration of colors defined in a color namespace), then
using these string manipulation functions rather than taking into
consideration the namespace it was qualified in would be pretty
ineffective.

So if colors was mapped to "urn:colors" and an associated Xml Schema
defined an enumeration of possible colors, then I would rather use a
qualified means (rather than string functions) to determine if the value
was part of the appropriate namespace.

<el color="colors:red" />

Steven.

-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of
Jarno.Elovirta@xxxxxxxxx
Sent: 20 August 2002 12:15
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: RE:  Qualified Attrib Value


Hi,

> How do I get the value of the "test" attrib (contains a value
> qualified
> in myprefix associated namespace) within this fragment without the
> prefix? (not using string manipulation, but proper Xpath).
> 
> <el test="myprefix:val" />

String manipulation is not part of "proper XPath"? Hmh. Anyhow,

  substring-before(el/@test, ':')

Cheers,

Santtu & Jarno

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




 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.