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

Re: XSLT and XML in the same document

Subject: Re: XSLT and XML in the same document
From: "M. David Peterson" <m.david@xxxxxxxxxxxxx>
Date: Sun, 27 May 2007 15:57:52 -0600
Re:  XSLT and XML in the same document
On Sun, 27 May 2007 15:39:05 -0600, David Carlisle <davidc@xxxxxxxxx> wrote:

which should also work in opera, just beware of white space parsing
differences (which can be avoided with xml:space) when parsing a
document as part of the stylesheet .

Ooh... Good catch, David!


The caveats with EXSLT node-set[1] from a browser perspective are fairly well documented on this list, so I won't go into extended detail, but Firefox 3.0 and Opera both support it, and IE 5.x+ supports the same basic functionality via msxsl:node-set()[2]. Kind of a pain to work between the two of them inside of the same transformation file, but a simple check using function-available or by comparing the value returned by system-property('xsl:vendor') will allow you to quickly and easily adapt your transformations according the the proper usage of node-set for each processor.

Of course, I still haven't check to see if Safari brought any of the support for EXSLT from libxslt when they did the integration a few years back. I'll check that now and report back.


[1] http://exslt.org/exsl/functions/node-set/index.html [2] http://msdn2.microsoft.com/en-us/library/hz88kef0(vs.71).aspx

--
/M:D

M. David Peterson
http://mdavid.name | http://www.oreillynet.com/pub/au/2354 | http://dev.aol.com/blog/3155


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-2011 All Rights Reserved.