xsl-list
[Top] [All Lists]

RE: xsl:include - net.sf.saxon.trans.DynamicError: Invalid URI

2005-06-07 15:49:45
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(_at_)yahoo(_dot_)com] 
Sent: 07 June 2005 02:43
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] 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 

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--





--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--