[ 
https://issues.apache.org/jira/browse/CAMEL-8287?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15360468#comment-15360468
 ] 

Thomas Walzer commented on CAMEL-8287:
--------------------------------------

Hi Ayache,

please do not apologise. This is unpaid work, after all ;-)

I re-tried your example, and got the same error.
When I add the rules.sch to the /tmp/schematron/sch/include directory I get the 
following:
  
  $ curl -v -H "Content-Type: application/xml" -X POST --data 
"@src/test/resources/input.xml"             
http://localhost:9090/schematron/validate
   *   Trying ::1...
   * connect to ::1 port 9090 failed: Connection refused
   *   Trying 127.0.0.1...
   * Connected to localhost (127.0.0.1) port 9090 (#0)
   > POST /schematron/validate HTTP/1.1
   > Host: localhost:9090
   > User-Agent: curl/7.43.0
   > Accept: */*
   > Content-Type: application/xml
   > Content-Length: 358
   >
   * upload completely sent off: 358 out of 358 bytes
   < HTTP/1.1 404 Not Found
   < Content-Type: text/plain
   < Content-Length: 0
   <
  * Connection #0 to host localhost left intact

I created a pull request (https://github.com/akhettar/zotix/pull/1), basically 
as a note to myself.



> Schematron component does not work with includes in schematron
> --------------------------------------------------------------
>
>                 Key: CAMEL-8287
>                 URL: https://issues.apache.org/jira/browse/CAMEL-8287
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-schematron
>    Affects Versions: 2.14.1
>            Reporter: Thomas Walzer
>            Assignee: ayache khettar
>            Priority: Minor
>         Attachments: 0001-add-test-for-schematron-with-includes.patch
>
>
> I have a schematron with includes:
>  <pattern>
>       <include href="include/DTr1_ANY.sch"/>
> ....
> </pattern>
> when I run against this schematron I get the following error:
> Recoverable error on line 472 
>   FODC0002: I/O error reported by XML parser processing null: null
> Unable to open referenced included file: include/DTr1_ANY.sch
> Unable to locate id attribute: include/DTr1_ANY.sch
> Recoverable error on line 472 
> There is question with an answer on stackoverflow that seems applicable to me:
> http://stackoverflow.com/questions/7236291/saxon-error-with-xslt-import-statement
> BTW: camel-schematron is not yet a component in JIRA.
> Many thanks in advance!
> Thomas.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to