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

ayache khettar commented on CAMEL-8287:
---------------------------------------

Hi [~twalzer]. I apologise profusely for the delay. I did have two attempts to 
find a solution but without success. I tried all the possible tricks, I even 
set the rules.sch to be located in the file system and still doesn't work.
{code}
  Apache ServiceMix (7.0.0.M2)

Hit '<tab>' for a list of available commands
and '[cmd] --help' for help on a specific command.
Hit '<ctrl-d>' or 'system:shutdown' to shutdown ServiceMix.

karaf@root>
karaf@root>
karaf@root>
karaf@root>
karaf@root>Recoverable error on line 472
  FODC0002: I/O error reported by XML parser processing null: null
Unable to open referenced included file: /tmp/schematron/rules/rules.sch
Unable to locate id attribute: /tmp/schematron/rules/rules.sch
{code}

We need a way of passing an XML Catalog or URI Resolver that may fix the issue 
but I doubt it as  the last test failed to find the included file in the file 
system. Here is the camel example I sued to test the solutions: 
https://github.com/akhettar/zotix/tree/master/schematron-service. 

I am extremely busy these days with family commitments and finding difficult 
hard to allocate time to investigate the issue properly. But I am confident we 
will get there


> 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