Subject: RE: [xsl] xsl:include - net.sf.saxon.trans.DynamicError: Invalid URI From: "Michael Kay" <mike@xxxxxxxxxxxx> Date: Tue, 7 Jun 2005 23:49:45 +0100 |
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] 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] xsl:include - net.sf.saxon.tr, Santosh N | Thread | RE: [xsl] Math: Removing X number o, tomas.vanek |
RE: [xsl] Math: Removing X number o, Michael Kay | Date | RE: [xsl] Assigning a boolean value, Michael Kay |
Month |