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

Re: 3 Sins of XML Usage

  • From: Jim Melton <jim.melton@oracle.com>
  • To: Norman Gray <norman@astro.gla.ac.uk>
  • Date: Fri, 26 Oct 2012 07:43:52 -0600

Re:  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: [expletive deleted] 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,
    Jim

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 [expletive deleted] 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
>
>
>--
>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]


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
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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.