Output a list of attributes

Having :

quote:

The query :

quote:
/data[@id=“1”]/@key

returns :

quote:
xql:result

</xql:result>

This is cool, what query do I write to get 2 attibutes in the result ?

quote:
xql:result

</xql:result>

Thanks !

This can’t be done because this is a restriction of XPath. You can get a list of attributes but can’t select which ones - you simply get all the attributes. So if you have:

quote:



to get the list of attributes you would say:
_xql=pvText/@*

the only thing here is that you really get a list thus:


hope this helps. Stuart