"Illegal character in authority" error running java Sa
I'm having a problem with an input XML document whose DTD contains an NDATA entity declared like this:
<!ENTITY xxxxx PUBLIC "-//xxxxxx//XXXX xxxxxx//EN"
whose name is used as the value of an attribute that's declared like this:
entname ENTITY #REQUIRED
e.g. it's used like this:
The XSLT 2.0 script runs just fine under Mac OS, but under Windows the program terminates with an error message like this (I've stripped out a long list of nested method names, but that's all):
Caused by: java.net.URISyntaxException: Illegal character in authority at index 2: //xx-xxx-xxxxxx x/xxxxx/xxx/xxx/xxxxxx/xxxxxxx/xxxx/xxxxx/xxxxxx/xxxxxxxxxxxx.jpg
Fatal error during transformation: java.lang.IllegalArgumentException: (no message)
Note that there's a space in the SYSTEM name of the entity. If I remove it, the XSLT script runs just fine. So it looks like the space is the "Illegal character".
Does anyone know what's going on here? Most importantly, I would like to process documents with entity declarations like the above without having to change the source XML documents by removing spaces in entity SYSTEM names. Is there a way of doing that?
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