[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: strange error message parsing xslt : namespace mi
Hi Matthieu,
If you validate this in oXygen you will get 4 errors [1]. Two of them complain that the namespace my is not declared and that is the main cause of the problem. My guess is that the XSLT processor (Saxon 9) uses some value for the function name and it does this in both cases when the function name is undefined and then a further check discovers that there is the same name for two functions and thus the duplicate function error message. [1] The 4 errors that you should get when you validate the stylesheet SystemID: /Users/george/Documents/workspace/www.oxygenxml.com/xml/Untitled3.xsl Main validation file: /Users/george/Documents/workspace/www.oxygenxml.com/xml/Untitled3.xsl Engine name: Saxon-PE 9.3.0.5 Severity: error Description: Failed to compile stylesheet. 3 errors detected. SystemID: /Users/george/Documents/workspace/www.oxygenxml.com/xml/Untitled3.xsl Main validation file: /Users/george/Documents/workspace/www.oxygenxml.com/xml/Untitled3.xsl Engine name: Saxon-PE 9.3.0.5 Severity: fatal Description: Duplicate function declaration (see line 10 of file:/Users/george/Documents/workspace/www.oxygenxml.com/xml/Untitled3.xsl) Start location: 6:43 URL: http://www.w3.org/TR/xslt20/#err-XTSE0770 SystemID: /Users/george/Documents/workspace/www.oxygenxml.com/xml/Untitled3.xsl Main validation file: /Users/george/Documents/workspace/www.oxygenxml.com/xml/Untitled3.xsl Engine name: Saxon-PE 9.3.0.5 Severity: fatal Description: Namespace prefix 'my' has not been declared Start location: 6:43 URL: http://www.w3.org/TR/xslt20/#err-XTSE0280 SystemID: /Users/george/Documents/workspace/www.oxygenxml.com/xml/Untitled3.xsl Main validation file: /Users/george/Documents/workspace/www.oxygenxml.com/xml/Untitled3.xsl Engine name: Saxon-PE 9.3.0.5 Severity: fatal Description: Namespace prefix 'my' has not been declared Start location: 10:43 URL: http://www.w3.org/TR/xslt20/#err-XTSE0280
On 8/24/11 6:31 AM, Matthieu Ricaud-Dussarget wrote: Hi all,
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|