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

RE: XSLT newbie looking for an easy to use processor

Subject: RE: XSLT newbie looking for an easy to use processor (java)
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Thu, 22 Dec 2005 13:54:58 -0000
xml string delimiters
> As the topic already states I'm looking for an easy to use 
> XSLT processor (in Java), 

The two Java processors that are most widely used nowadays are Xalan and
Saxon. At your current level of knowledge either will do the job. Both are
open source. Xalan is bundled into the Sun JDK. Saxon is usually faster and
supports the more recent version of the language, XSLT 2.0.

> I want to pass an XML string and a corresponding XSLT 
> description to it, which is used to sort of parse the XML 
> string. 

Yes, that's what XSLT processors do.

> The XML string will contain a number of 
> items/elements (like name, phone and so on) and there are a 
> number of XSLT descriptions, one for each parameter, to sort 
> of crop the string so it will only contain the needed 
> parameter. So all I need is a XSLT processor which is easy to 
> use, accepts an XML string for input and returns another 
> string as a result.

Actually, XSLT processing consists of three stages:

(1) parse the XML string into a tree representation
(2) transform this source tree into a result tree
(3) serialize this result tree back into XML (or HTML, or plain text)

The core of XSLT processing is step (2).

> (Additionally :
> In case the result of an XSL transformation should contain 
> more than just one item it should be possible to define a 
> delimiter for the result string so I can distinguish the 
> items (I can't think of an appropriate example ... let's say 
> there are two items called "Name" in the XML string ;P)

The result of the transformation will normally be XML, so the "delimiters"
will usually be represented by XML markup. But you can generate different
delimiters it that's what the receiving application requires.

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.