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

Re: xsltproc/LibXSLT - non-compliance?

Subject: Re: xsltproc/LibXSLT - non-compliance?
From: Michael Ludwig <mlu@xxxxxxxxxxxxx>
Date: Thu, 01 May 2008 12:23:20 +0200
Re:  xsltproc/LibXSLT - non-compliance?
Michael Kay schrieb:
And the definitions of element-available() and function-available()
don't say that much, so you can't rely on automatic conversion to
just happen.
Yes, although to be honest I would expect them to happen in this case
(as apparently would implementors of other xslt systems.)

Section 3.2 of XPath 1.0 (function calling) says that the supplied argument is converted to the required type, which in this case is string. The second argument of key() is different because the declared type is "object".

The very first sentence of section 4 of XSLT 1.0 (Expressions) reads:


    XSLT uses the expression language defined by XPath [XPath].
    -- http://www.w3.org/TR/xslt#section-Expressions

The very first sentence of section 12 of XSLT 1.0 (Additional Functions)
reads:

    This section describes XSLT-specific additions to the core XPath
    function library. -- http://www.w3.org/TR/xslt#add-func

Can we infer from this that section 3.2 of XPath 1.0, including rules
for type conversion, applies to XSLT 1.0, including XSLT functions?

Isn't this like the Letter and the Spirit of the Law?

Michael Ludwig

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.