OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
Re: [xml-dev] 3 Sins of XML Usage

Norman, et al,

In fact, XPath has been incorporated into several other "host" 
languages, the most obvious of which is XQuery.  (Actually, XPath is 
a subset of XQuery.)

XSLT and XQuery have very different paradigms. XSLT is, in my way of 
looking at it, "data driven", while XQuery is "logic driven".  Other 
than that, they do rather similar jobs: sucking in XML and emitting 
XML, HMTL, and plain text (or, without a serializer, XDM -- 
XPath/XQuery/XSLT Data Model -- instances). If one language (e.g., 
XSLT) isn't right for your job or for your preferences, then XQuery 
is certainly worth considering for processing XML data.

Hope this helps,

At 10/26/2012 03:19 AM, Norman Gray wrote:

>Roger, hello.
>On 25 Oct 2012, at 17:46, "Costello, Roger L." <costello@mitre.org> wrote:
> > Sin #1: Using Java to Process XML
>This seems such an eccentric proposition that I think I must be 
>misunderstanding you.
>If by 'process XML' you mean 'turning XML into other XML in what is 
>basically a reformatting job' then yes, XSLT would obviously be top 
>of the list of candidate technologies.  But it depends what has to 
>happen to the information during its processing.
>It's not as if processing XML with Java (to pick your example 
>application language, which is far from being my favourite) is 
>particularly nasty.  You suck the XML in with SAX (implementing a 
>~10-function interface to do so), do your magic, and serialise the 
>result.  If the serialisation target is XML, that ends up being the 
>most annoying part of the process in my experience.
>XSLT is an attractive language in many ways, but it's sufficiently 
>syntactically nasty that I always end up grinding my teeth if I 
>write more than a relatively small amount of it.  One can over-sell 
>the case for XSLT.
>And I know that XPath is a distinct language, but (possibly my 
>ignorance) I'm not aware of many opportunities to use that outside 
>the context of XSLT.
>Best wishes,
>Norman Gray  :  http://nxg.me.uk
>SUPA School of Physics and Astronomy, University of Glasgow, UK

Jim Melton --- Editor of ISO/IEC 9075-* (SQL)     Phone: +1.801.942.0144
   Chair, ISO/IEC JTC1/SC32 and W3C XML Query WG    Fax : +1.801.942.3345
Oracle Corporation        Oracle Email: jim dot melton at oracle dot com
1930 Viscounti Drive      Alternate email: jim dot melton at acm dot org
Sandy, UT 84093-1063 USA  Personal email: SheltieJim at xmission dot com
=  Facts are facts.   But any opinions expressed are the opinions      =
=  only of myself and may or may not reflect the opinions of anybody   =
=  else with whom I may or may not have discussed the issues at hand.  =

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS