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

RE: element-available() question

Subject: RE: element-available() question
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Tue, 27 Mar 2001 16:38:08 +0100
element available
The specification says that element-available() should return true if an
instruction of the given name is available. Saxon is taking the
specification literally: "xsl:template" is not an instruction. Other
processors are taking the name "element available" at its face value, and
returning true because there is an element available with that name.

Mike Kay
Software AG

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of
> dago@xxxxxxxxxxxxxxxxx
> Sent: 27 March 2001 16:18
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  element-available() question
>
>
> Hi all,
>
> I have this code:
>
>
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> version="1.0">
> <xsl:output method="html" indent="yes"/>
>
> <xsl:template match="/">
> <html>
> <body>
>   <p><h2>Elements availables with the element-available()
> function.</h2></p>
>   <table border="1">
>     <tr><td>Element</td><td>Availability</td></tr>
>     <tr>
>       <td><pre><![CDATA[<xsl:template>]]></pre></td>
>       <td valign="top"><xsl:value-of
> select="element-available('xsl:template')"/></td>
>     </tr>
>   </table>
> </body>
> </html>
> </xsl:template>
>
> </xsl:stylesheet>
>
>
> And the ouput source code is diferent if I process in Xalan, Saxon and
> MSXSL.  The ouput on Saxon's processor is 'false' and the
> other ones is
> 'true'.  Why the result is diferent if is the same code?
>
> Thanks,
>
> Dago Flores.
>
>
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.