I don't know of another way currently other than creating a string
variable in XSL and looping in XSL and appending each attribute name
value to the string comma delimited and then running listToArray on that
string. The way your doing it is fine.


You may also want to see if this site has an answer.
http://www.dpawson.co.uk/xsl/sect2/sect21.html

-----Original Message-----
From: Nikhil Madani [mailto:[EMAIL PROTECTED]
Sent: Monday, January 05, 2004 1:39 PM
To: CF-Talk
Subject: XPath expr to get all attributes....how?

I have a XML file that looks like this
(actually fusebox.xml file from FB4, for those who are familiar)

<circuit>
<fuseaction name="somename">
..
</fuseaction>
.
.
</circuit>
I need to get a list of all the attribute values for "name" into an
array. Right now, I'm using the xpath _expression_
"/circuit/[EMAIL PROTECTED]", to first get an array of all fuseaction
structures, and then doing myarray[idx].XmlAttributes.name to get the
attribute values. Is there a better XPath _expression_ to get just the
attribute values. All the examples I see relate to searching
sub-elements on the attribute value, but not related to getting the
attributes themselves.
TIA,
Nikhil
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to