[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: XQuery basics

Subject: RE: XQuery basics
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Wed, 4 Jun 2008 16:57:10 +0100
RE:  XQuery basics
XQuery is off-topic for this list; try the talk@xxxxxxxxxx list. It's just
as helpful as this list though it has a tiny fraction of the traffic - which
either means that XQuery is much easier to use than XSLT, or that no-one is
using it.

Michael Kay
http://www.saxonica.com/ 

> -----Original Message-----
> From: scarleton@xxxxxxxxx [mailto:scarleton@xxxxxxxxx] On 
> Behalf Of Sam Carleton
> Sent: 04 June 2008 16:43
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  XQuery basics
> 
> First off, I am not 100% this is the write place to ask this 
> question, but in years past you all have been very helpful to 
> me with XSLT and thought you might have some insight or know 
> where I should go to get the help I need.
> 
> I have worked with DOM, SAX, XSLT, and XPath in the past and 
> am now working with a framework that has XQuery.  The task at 
> hand is very simple, change (or add if not present) an 
> attribute to one element in an XML document:
> 
> Example: If the name element has an average attribute, change 
> it to 93, otherwise create it and set it to 93
> input:
> 
> <root>
>   <students>
>     <name value="scott"/>
>   </students>
> </root>
> 
> or
> 
> <root>
>   <students>
>     <name value="scott" average="90"/>
>   </students>
> </root>
> 
> output:
> 
> <root>
>   <students>
>     <name value="scott" average="93"/>
>   </students>
> </root>
> 
> Is XQuery like XSLT such that I have to build a little script 
> that will copy everything from the source to the destination 
> and make the change or add the attribute once I get to it?
> 
> Sam

Current Thread

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-2011 All Rights Reserved.