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

RE: Newbie Q - transformation

Subject: RE: Newbie Q - transformation
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Sun, 26 Aug 2007 20:58:46 +0100
RE:  Newbie Q - transformation
> how can I transform this:
> 
> <a/>
> <plus/>
> <b/>
> 
> to this:
> <plus>
> <a/>
> <b/>
> </plus>

To give you a sensible answer, one has to extrapolate from this example to
ask what other possible inputs you might encounter and how you would want to
handle them. For example, would you want to transform 

<a/><plus/><b/><times/><c/>

into

<plus><a/><times><b/><c/></times></plus>

If that's the case, then your problem is basically equivalent to that of
writing a recursive descent parser.

So I think we need a more complete spec of the problem.

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

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