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

Re: Daisy chaining XSLT and also how can I check wheth

Subject: Re: Daisy chaining XSLT and also how can I check whether the XSLT processor supports a specific extension (specifically, ext:node-set)?
From: "Martin Honnen martin.honnen@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 7 Aug 2024 18:48:48 -0000
Re:  Daisy chaining XSLT and also how can I check wheth
On 07/08/2024 20:11, ohaya ohaya@xxxxxxxxx wrote:
> I just tried (this was before your response below came in:
>
>
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> B B B B B  xmlns:exslt="http://exslt.org/common"
> B B B B B  xmlns:msxsl="urn:schemas-microsoft-com:xslt"
> B B B B B  version="1.0">
> .
> .
> B B B  <xsl:message>Test for exl:node-set() function</xsl:message>
> B B B  <xsl:choose>
> B B B B B B B  <xsl:when test="function-available('exslt:node-set') = ''">
> B B B B B B B B B B B  <xsl:message>+++++++++ exslt:node-set NOT available
> ;)</xsl:message>
> B B B B B B B  </xsl:when>
> B B B B B B B  <xsl:otherwise>
> B B B B B B B B B B B  <xsl:message>+++++++++ exslt:node-set IS
> available</xsl:message>
> B B B B B B B  </xsl:otherwise>
> B B B  </xsl:choose>
>
> And when I test under xsltproc on centos, I get:
>
> Test for exl:node-set() function
> +++++++++ exslt:node-set IS available
>
>
> a) Shouldn't my test (vs. your suggested code) be sufficient?
>
Yes, you can use that to test for support of EXSLT node-set.


> b) Also, per above I ran that on xsltproc on centos...
>
> If the above is good, then I need to try to run the same test on the
> product, but, sorry, I forgot to mention that the product is running
> on Windows, so should I change the namespace prefix in the code to
> "msxsl:" instead of "exslt"?
>

In your previous messages I think you said it is Xalan C++, so no, don't
use the msxsl prefix, it works with Microsoft XSLT 1 processors like the
various versions of MSXML or .NET's obsolete XslTransform.

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.