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

RE: Detecting presence of attributes

Subject: RE: Detecting presence of attributes
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Mon, 5 Feb 2001 14:07:37 -0000
xalan attribute presence
> >Your xsl:for-each below always selects just one node ( an element has
> >not more than one attribute with a given name)
>
> No, the attribute is declared as ENTITIES, not ENTITY. There are
> multiple entity names in the attribute value, separated by spaces.

The attribute type is not visible in the XPath tree model and has no effect
on the way a stylesheet is processed (unless the type is ID, which affects
the id() function).

Splitting up an ENTITIES value is therefore the same as processing any other
space-separated string, it can be done using a recursive named template
using the substring-before() and substring-after() functions, or using the
tokenize() extension function present in Saxon and Xalan.

Mike Kay


 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.