[xquery-talk] separating attribute name from its value and also counting similar attribute names and values

fatma helmy fatmahelmy2000 at yahoo.com
Fri Mar 3 03:16:15 PST 2006


thanks it worked using name() and string , now i need
to count the similar attribute values
suppose i have the following
let $j := 
<bookstore>
<book> 
<author firstname='joe' lastname='carlon'> <author>
</book>
<book> 
<author firstname='joe' lastname='carlon'> <author>
</book>
<book> 
<author firstname='mary' > <author>
</book>

</bookstore>

i need to generate this output 

<path 'book/author'>
<attrname = firstname  count=3>
<attrval> joe count=2 mary count=1</attrval>
</attrname>
<attrname = lastname  count=2>
<attrval> carlon count=2 </attrval>
</attrname>
</path>

to get attribute path , i used xdmp:describe but it
did not work , i use stylus studio professional
edition.
but assume i have the path and i want to extract all
attribute in this path


http://www.islam-guide.com/

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


More information about the talk mailing list