On Sun, 27 May 2007 15:39:05 -0600, David Carlisle <davidc(_at_)nag(_dot_)co(_dot_)uk>
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
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--