You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Joachim Martin (JIRA)" <ji...@apache.org> on 2010/07/14 23:15:51 UTC

[jira] Issue Comment Edited: (SOLR-1656) XInclude's are resolved relative CWD, not instance dir

    [ https://issues.apache.org/jira/browse/SOLR-1656?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12888541#action_12888541 ] 

Joachim Martin edited comment on SOLR-1656 at 7/14/10 5:14 PM:
---------------------------------------------------------------

I'm having a similar problem with using XInclude to import a transformers.js script file in DataImportHandler:

    <script xmlns:xi="http://www.w3.org/2001/XInclude">
        <xi:include parse="text" href="file:transformers.js"/>
    </script>

At runtime, the XML parser looks for this in my solr directory, not parallel to my db-data-config.xml (in the core/conf directory).

Having the source for script transformers in a separate js file allows me to use an IDE to check syntax, etc- very helpful.

[I'm assuming this is the same problem, but not sure]

      was (Author: joachimm@yahoo.com):
    I'm having a similar problem with using XInclude to import a transformers.js script file in DataImportHandler:

    <script xmlns:xi="http://www.w3.org/2001/XInclude">
        <xi:include parse="text" href="file:transformers.js"/>
    </script>

At runtime, the XML parser looks for this in my solr directory, not parallel to my db-data-config.xml (in the core/conf directory).

Having the source for script transformers in a separate js file allows me to use an IDE to check syntax, etc- very helpful.
  
> XInclude's are resolved relative CWD, not instance dir
> ------------------------------------------------------
>
>                 Key: SOLR-1656
>                 URL: https://issues.apache.org/jira/browse/SOLR-1656
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 1.4
>            Reporter: Hoss Man
>         Attachments: SOLR-1656_Support_SAX_SystemId_via_wrapping_InputStream.patch
>
>
> As noted on the mailing list, when an XInclude in a config files refrences a relative path, it's resolved relative the CWD of the servlet container, and not the instanceDir of the core...
>  http://old.nabble.com/using-Xinclude-with-multi-core-to26548400.html#a26548400

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org