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

Re: Xalan producing error - (Location of error unknow

Subject: Re: Xalan producing error - (Location of error unknown)org.xml.sax.SAXException: Can not resolve namespace prefix: #all
From: Graydon <graydon@xxxxxxxxx>
Date: Tue, 7 Jan 2014 14:26:23 -0500
Re:  Xalan producing error - (Location of error  unknow
On Tue, Jan 07, 2014 at 01:09:00PM -0600, a kusa scripsit:
> When I try to run transformation using xalan, I keep getting this error:
> 
> (Location of error unknown)org.xml.sax.SAXException: Can not resolve
> namespace prefix: #all
> 
> I do have exclude-result-prefixes in my stylesheet and I use XSLT2.0.
> 
> How do I prevent this error?!

By using an XSLT 2.0 processor -- Xalan is strictly 1.0, see
<http://xml.apache.org/xalan-j/> -- or by using an XSLT 1.0 stylesheet
that doesn't try to use a 2.0 construct like #all.

Especially since #all is a keyword for _modes_, not prefixes; if you've
got something in your code where a namespace prefix starts with an
octothorpe (#) that's not going to work anywhere, prefixes can have the
characters of the Name production except for the colon (:).  Name
production start characters don't include #.

-- Graydon

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.