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

Re: Re: Identity transformation for XSLT 2.0

Subject: Re: Re: Identity transformation for XSLT 2.0
From: Colin Paul Adams <colin@xxxxxxxxxxxxxxxxxx>
Date: Sun, 23 Dec 2007 14:50:43 +0000
Re:  Re: Identity transformation for XSLT 2.0
>>>>> "bryan" == bryan rasmussen <rasmussen.bryan@xxxxxxxxx> writes:

    >> 
    >> Perhaps. I feel rather strongly about standards conformance.

    bryan> There are lots of standards. Nobody conforms to every
    bryan> standard. There are sets of standards that can be naturally
    bryan> thought of as being related to each other. I am not sure
    bryan> that the data uri scheme could be considered as a standard
    bryan> that naturally works with the core XML standards, it is
    bryan> more naturally related to browsers and the standards
    bryan> pertinent to browsers.

That may be.
But my disgust is at seeing an extension function written when there
is an existing standard in place that covers the functionality.

To illustrate,

saxon:parse ($string-value)

provides the same functionality as

doc (concat ("data:application/xml", ';base64,', base64Binary($string-value)))

or

doc (concat ("data:application/xml,", encode-for-iri($string-value)))

Now I've written it down, perhaps I can see the explanation for
saxon:parse after all - base64Binary and encode-for-iri weren't
available prior to XSLT 2.0.
But either of these would have been a more generally useful extension
function than parse.
-- 
Colin Adams
Preston Lancashire

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.