[xquery-talk] someone who has stylus studio
fatma helmy
fatmahelmy2000 at yahoo.com
Sun Feb 12 11:39:41 PST 2006
i got this code , it does not work on stylus studio
xquery but works on other processor , can any one has
stylus studio run it and tell me whether it gives
error or not
let $bookstore :=
<bookstore>
<book >
<title>seven years in trenton</title>
<price>12</price>
</book>
<book >
<title> history of trenton</title>
<price> 55</price>
</book>
<book >
<title> trenton today, trenton tomorrow
</title>
<price> 55</price>
<author> </author>
</book>
</bookstore>
for $path in
("bookstore/book/title","bookstore/book/price",
"bookstore/book/author")
let $leafs :=
$bookstore//text()[string-join(ancestor-or-self::element()/node(),'/')
eq $path]
return
<attr-per-path path='{$path}'>{
for $val in distinct-values($leafs)
return <value-per-path value='{$val}'
count='{count($leafs[. eq
$val])}'/>
}</attr-per-path>
__________________________________________________
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