[xquery-talk] (no subject)

Manolis Mylonakis mylonos at otenet.gr
Mon Feb 13 12:04:00 PST 2006


 

Hello fatma 

 

I use Stylus Studio 6 professional edition

and your query gave me the below results:



<attr-per-path path="bookstore/book/title"/>

<attr-per-path path="bookstore/book/price"/>

<attr-per-path path="bookstore/book/author"/>



good luck

Manolis





 

 

 

 

 

 

 

 

 

-----Original Message-----
From: talk-bounces at xquery.com [mailto:talk-bounces at xquery.com] On Behalf Of fatma helmy
Sent: Sunday, February 12, 2006 9:40 PM
To: talk at xquery.com
Subject: [xquery-talk] someone who has stylus studio

 

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 

_______________________________________________

talk at xquery.com

http://xquery.com/mailman/listinfo/talk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://xquery.com/pipermail/talk/attachments/20060213/a2667a24/attachment.htm


More information about the talk mailing list