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

strange error message parsing xslt : namespace missing

Subject: strange error message parsing xslt : namespace missing + function
From: Matthieu Ricaud-Dussarget <matthieu.ricaud@xxxxxxxxx>
Date: Wed, 24 Aug 2011 05:31:36 +0200
 strange error message parsing xslt : namespace missing
Hi all,

Maybe it's more an xslt implementation question, but might not be off topics here (?)

Here is an dummy XSLT 2 stylesheet with functions and on purposed xmlns declaration omission (abuse use of copy-namespaces="no"...):

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0"
>
<!--xmlns:my="http://www.my.org"-->


<xsl:function name="my:foo" as="item()">
<xsl:value-of select="'foo'"/>
</xsl:function>

<xsl:function name="my:bar" as="item()">
<xsl:value-of select="'bar'"/>
</xsl:function>

</xsl:stylesheet>

I then get this error in both oXygen and Jedit :
   Duplicate function declaration (see line 9 of ...)

When adding the commented xmlns declaration to xsl:stylesheet, the error disapear.

I search a long time among my "many functions xslt" but i couldn't any duplicated function.

Am I wrong or this error message is not appropriated?
I'm not sure which XSLT parser is used in my IDE (xalan, saxon?), but it seems there is a bug here, no?


Comments or explanation welcome :-)

Regards,
Matthieu



--
Matthieu Ricaud
IGS-CP
Service Livre numirique

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.