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

Re: XSLT 2.0 or XSLT 1.0 -- which is more elegant? (Wa

Subject: Re: XSLT 2.0 or XSLT 1.0 -- which is more elegant? (Was: Re: mixing it up: REST+XML Namespaces + XLST)
From: Jirka Kosek <jirka@xxxxxxxx>
Date: Tue, 19 Apr 2005 13:14:44 +0200
Re:  XSLT 2.0 or XSLT 1.0 -- which is more elegant? (Wa
Dimitre Novatchev wrote:

> Why it can't be... let's say RNG ? :o)

I also prefer RNG over WXS. But it is true that for assigning data types
to nodes in XML document WXS is better because it can assign these types
  unambiguously.

In RNG you can create ambiguos content models which is great for
modeling document structures but not so great if you need tight
data-binding. But if you can limit yourself to unambiguous patterns in
RNG than it would be possible to graft RNF onto XSLT 2.0. Simple things
like assigning datatypes will work. But there are some more fundamental
changes needed. In WXS you can derive new datatypes using type hierarchy
and XPath provides access to this sort of information
(element(*,datatype)). In RNG you usually extend named patterns because
there is no inheritance in OO sense as in WXS. But it looks pretty
strange to reference named patterns in stylesheets -- named patterns are
used to internally organize schema.

Anyway it would be interesting to see some more detailed study about
integration of subsetted RNG into XSLT 2.0.

--
------------------------------------------------------------------
   Jirka Kosek     e-mail: jirka@xxxxxxxx     http://www.kosek.cz
------------------------------------------------------------------
   Profesionalnm 9kolenm a poradenstvm v oblasti technologim XML.
      Podmvejte se na na9 novl spu9tln} web http://DocBook.cz
        Podrobn} pxehled 9kolenm http://xmlguru.cz/skoleni/
------------------------------------------------------------------

[demime 1.01d removed an attachment of type application/x-pkcs7-signature which had a name of smime.p7s]

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.