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

RE: xsl:include - net.sf.saxon.trans.DynamicError: In

Subject: RE: xsl:include - net.sf.saxon.trans.DynamicError: Invalid URI
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Tue, 7 Jun 2005 23:49:45 +0100
net.sf.saxon.trans.dynamicerror illegal html chara
A legal URI cannot contain a space: it must be encoded as %20.

Unfortunately different bits of software are very inconsistent in how
strictly they interpret the URI syntax rules. It's safest therefore to stick
strictly to the rules.

One bit of software that is regrettably lax is the JAXP StreamSource class.
If you use the constructor that accepts a File (e.g. new StreamSource(new
File("c:\\My Documents\\temp.xml"))), then it does a really bad job of
filename-to-URI translation. This is often the cause of bad URIs getting
into the system. It's better to use new StreamSource(new
File(...).toURI().toString()).

Michael Kay
http://www.saxonica.com/ 

> -----Original Message-----
> From: Santosh N [mailto:ss1722@xxxxxxxxx] 
> Sent: 07 June 2005 02:43
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  xsl:include - net.sf.saxon.trans.DynamicError: 
> Invalid URI 
> 
> Hi All,
> 
> I am getting the below error while trying to include a xsl file, my
> guess is space in "Web Content" folder causing the problem. Any idea
> about this?
> 
> Error at xsl:include on line 150 of
> file:/X:/NYC_DISTRIBUTION_ALPINE/Alpine/web/oasys/Web
> Content/xml/OrdersTable.xsl:
>   XTSE0165: net.sf.saxon.trans.DynamicError: Invalid URI {Pager.xsl}
> - base
>   {file:/X:/NYC_DISTRIBUTION_ALPI...}: Illegal character in path at
> index 53:
>   file:/X:/NYC_DISTRIBUTION_ALPINE/Alpine/web/oasys/Web
> Content/xml/OrdersTable.xsl
> 
> Thanks
> Santosh
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 

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.