This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

how to select the same attribute form more elements?


Hi all,
what expression should I use to select all val attributes in the following
doc at once:

<myxml>
 <node val="1">t1</node>
 <node val="2">t2</node>
 <node val="3">t3</node>
 <node val="4">t4</node>
</myxml>

I can easily get all the values of text nodes by : /myxml/node/text(),

but I don't know how to get all the values of the attributes since:
/myxml/node/@val
gives my just the last one.

br,

Jakub


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]