[Schematron] Schematron referencing xml files doubt
Luis Costa
luis.costa at alert.pt
Wed Jan 7 11:32:32 EST 2009
Hi Florent,
Thank you for your tip,
I just finish now my implementation and I used in my code something like the same example you are giving me so it works fine :)
Thank you for your attention and best regards,
Luís Costa
Software Developer
luis.costa at alert.pt
www.alert-online.pt
ALERT Life Sciences Computing, S.A.
Edifício Lake Towers - pisos 7, 8 e 9
Rua Daciano Baptista Marques, n.º 245
4400-617 Vila Nova de Gaia
Portugal
Tel.: +351 22 832 89 80
Fax.: +351 22 832 89 82
info at alert.pt
This e-mail is privileged, confidential and contains private information. Any reading, retention, distribution or copying of this communication by any person other than its intended recipient is prohibited.
-----Original Message-----
From: Florent Georges [mailto:lists at fgeorges.org]
Sent: quarta-feira, 7 de Janeiro de 2009 16:26
To: Luis Costa; schematron at eccnet.com
Subject: Re: [Schematron] Schematron referencing xml files doubt
Luis,
Typically, this is a symptom of using a JAXP's StreamSource
constructed with an InputStream or a Reader without setting the System
ID. If this is the case, make sure to read what the Javadoc of
StreamSource says about System IDs.
If that does not help, I think you'll have to post some code...
Regards,
--
Florent Georges
http://www.fgeorges.org/
Luis Costa wrote:
> Hi all,
> Has I mention before I'm developing a java code to validate XML
> xmlToValidate.xml using schematron schema.sch,
> In my schematron code I use some elements values of a XML file
> values.xml to validate some fields values in XML xmlToValidate.xml
> I got a style sheet styleSheet.xsl from the following process:
> Transform my schematron "chema.sch" in a style sheet styleSheet.xsl,
> to perform this I use saxon 9.105 using the following command:
> "java -jar saxon9.jar -o schema-compiled.xsl schema.sch
> iso_schematron_skeleton.xsl"
>
>
> Now I'm using this java class in a servlet running in tomcat, but
> obviously the path defined for values.xml file in schema.sch and
> styleSheet.xsl is not correct.
> What is the better approach to define the values.xml path in
> styleSheet.xsl? can I define values.xml path value in run time?
> What is your advice to this case once I'm getting the following
> error:
>
> "javax.xml.transform.TransformerException:
> com.sun.org.apache.xalan.internal.xsltc.TransletException:
> com.sun.org.apache.xml.internal.utils.WrappedRuntimeException:
> C:\Windows\system32\schematron\ values.xml (The system cannot find
> the path specified)"
>
>
>
> Thank you for your attention and best regards,
>
> Luís Costa
> Software Developer
>
> luis.costa at alert.pt
>
> www.alert-online.pt
>
>
> ALERT Life Sciences Computing, S.A.
> Edifício Lake Towers - pisos 7, 8 e 9
> Rua Daciano Baptista Marques, n.º 245
> 4400-617 Vila Nova de Gaia
> Portugal
> Tel.: +351 22 832 89 80
> Fax.: +351 22 832 89 82
> info at alert.pt
>
> This e-mail is privileged, confidential and contains private
> information. Any reading, retention, distribution or copying of this
> communication by any person other than its intended recipient is
> prohibited.
>
>
>
> _______________________________________________
> Schematron mailing list
> Schematron at eccnet.com
> http://www.eccnet.com/mailman/listinfo/schematron
>
More information about the Schematron
mailing list