[XQuery Talk Mailing List Archive Home] [By Date] [By Thread] [By Subject] [By Author] [Recent Entries] [Reply To This Message]

someone who has stylus studio

fatma helmy fatmahelmy2000 at yahoo.com
Sun Feb 12 11:39:41 PST 2006


  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 


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.