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

Re: New/old pattern syntax, why can't we have both ?

Subject: Re: New/old pattern syntax, why can't we have both ?
From: "Pasqualino \"Titto\" Assini" <assini@xxxxxxxx>
Date: Wed, 19 Aug 1998 17:31:45 +0200
titto assini
James Robertson wrote:
> 
> At 19:23 19/08/1998 , you wrote:
> 
>   | I think that the solution is very simple.
>   |
>   | The new syntax should be seen as a shorthand for the full, verbose, XML
>   | form.
>   |
>   | It would be the parser responsibility to translate the compact form into
>   | the normalised, "canonical" fully-XML form so that the application
>   | programmer can be oblivious of this syntax details.
> 
> How does this resolve the problem?
> 
> This approach means that:
> 
> * Custom parsers still need to be written for XSL.
> 
> * They still need to be able to parse the "shorthand" form.
> 
> * They would then be required to do an additional mapping
>   to a "long" form.
> 
> Isn't this more work, not less, and still leaves the
> _very_ undesirable situation of having "non-XML" XML?

You don't need to touch the existing XML parsers.

You would write a layer that will plug in the existing SAX or DOM
interface of your XML parser, expand the 
short form if detected and return, again through SAX or DOM, the
expanded XML.

This would need to be written only once and might work with any SAX/DOM
XML parser. 

What you would get in exchange it is the possibility of using the input
form that you prefer.
 
-- 
Pasqualino "Titto" Assini  ---  assini@xxxxxxxx  
Kamus Internet Consulting  ---  http://www.kamus.it/



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.