Hi Gerrit,

thanks! With a little tweaking, I got it to work.

However, it isn't a nice solution.
I would expect saxon to URI-check input file paths and convert them in case the encoding or URI is wrong...


Regards,
Tobias


Am 21.11.2012 10:50, schrieb Imsieke, Gerrit, le-tex:
Re-sent with .bat renamed to .txt b/c our MTA wouldn’t send the message.

On 2012-11-21 10:40, Imsieke, Gerrit, le-tex wrote:
Hi Tobias,

Please find attached tranform.bat to invoke the transformation. It uses
Urify (in Urify.java, just compile with javac) to percent-encode the
input file’s URI.

It assumes that Urify.class and a saxon.bat script reside in the
script’s directory, which is in the varaible %~dp0 (assuming that you
use Windows 7). In previous Windows versions, you need to assign the
script’s directory to a variable first.

Gerrit


On 2012-11-21 09:10, Tobias Fischer | pagina GmbH wrote:
Hey,

I totally forgot about this point in my first mail: I'm not passing any
paramter to saxon!
This is how I start the transformation from batch:

      java -Xmx1024m -classpath "%CP%" net.sf.saxon.Transform -l -o
output.xml Skelett_HJRHTML.htm testStylesheet.xsl

where %CP% is the batch variable for the java classpath and
"Skelett_HJRHTML.htm" the input XHTML file.
In the stylesheet itself, I don't handle any paths or file names...
Just imagine "testStylesheet.xsl" to contain nothing but a copy
template...


The problem seems to be the location in which saxon is beeing started:

C:/Users/Müller/paginaSoftware/oxygen-framework/applications/hjr/temp/

This path contains a german umlaut and Saxon throws the error message
just by handling the copy template...
Or probably while saxon is instantiating itself before performing the
transformation...


Regards,
Tobias


Am 20.11.2012 20:49, schrieb Imsieke, Gerrit, le-tex:
Hi Tobias,

Have you tried escaping the 'ü' in the URI as %FC when passing it to
Saxon? Otherwise it won’t be a proper URI according to RFCs 2396 or
3986.

Gerrit


On 2012-11-20 19:57, Tobias Fischer | pagina GmbH wrote:
Hi,

I'm using Saxon-B 9.1.0.8J to transform compiled XSLT 2.0 stylesheets
via batch on windows.
While testing the product on several systems, I hit the following bug:

Error
com.sun.org.apache.xerces.internal.util.URI$MalformedURIException:
Path contains invalid character: ü
Transformation failed: Run-time errors were reported

The windows 7 username is "Müller", which is a quite common name in
Germany.

This also happens with a "plain" xslt stylesheet containing only an
identity pattern and nothing else...


While investigating the issue, I also ran the transformation with
current Saxon-HE and uncompiled stylesheets.
Unfortunately I got nearly the same error:

Error
     I/O error reported by XML parser processing

file:/C:/Users/Müller/paginaSoftware/oxygen-framework/applications/hjr/temp/Skelett_HJRHTML.htm:

Path contains invalid character: ü


Java version was 1.6.0_37. I upgraded to current 1.7.0_9 but the errors
were the same.

Then I tried on a Windows system with Java 1.6.0_26 and the
transformation ran through without an error.


Anyone else having this issue?

Is there a workaround which fixes this behaviour in Saxon-B 9.1.0.8?
Running the transformation outside the users home directory isn't an
option at the moment...


Regards,
Tobias



------------------------------------------------------------------------------

Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases,
vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
saxon-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/saxon-help



------------------------------------------------------------------------------

Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
saxon-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/saxon-help





------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov


_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
saxon-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/saxon-help