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

RE: How to process individual values of an attribute

Subject: RE: How to process individual values of an attribute
From: "Lars Huttar" <lars_huttar@xxxxxxx>
Date: Mon, 4 Aug 2003 20:55:37 -0500
individual values
I don't think there's a really easy way to do it for all cases in XSLT 1.0.

If the values are IDREFs, you can use id() to create a
nodeset and use for-each or apply-templates to process the nodes.

If they aren't IDREFs, you can write a recursive template using
substring-before() to loop through the space-separated values.

Lars

-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf
Of Néstor Boscán
Sent: Monday, August 04, 2003 3:36 PM
To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
Subject:  How to process individual values of an attribute


Hello

If I have an XML file like the following:

<element values="a b c d"/>

Is there a way to process individual values of attributes using for-each or apply-templates. I want
to be able to process a, b, c, d like I process elements.

Thanks

Néstor Boscán ? Consultor

Teléfono Móvil: +58 414 2490162
Teléfono Oficina: +58 212 2437103
Fax Oficina:  +58 212 2435796
Correo Electrónico: nestor.boscan@xxxxxxxxxx


 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.