: I see this post:
: 
http://lucene.472066.n3.nabble.com/including-external-files-in-config-by-corename-td698324.html
: that implies you can use #xpointer(/*/node()) to get all elements of
: the root node (like if I changed my example to only have one include,
: and just used multiple files, which is fine if it works), however my
: testing gave this error: ERROR org.apache.solr.core.CoreContainer -
: org.xml.sax.SAXParseException: Fragment identifiers must not be used.
: The 'href' attribute value
: '../../conf/solrconfigIncludes.xml#xpointer(root/node())' is not
: permitted.  I tried several other variations of trying to come up with
: pointers using node() or *, none of which worked.

Can you post the details of your JVM / ServletContainer and the full stack 
trace of the exception?  My understanding is that fragment identifiers are 
a mandatory part of the xinclude/xpointer specs.

It would also be good to know if you tried the explicit "xpointer" 
attribute approach on the xinclude syntax also mentioned in that thread...

I think it owuld be something like...

<xi:include href="solrconfigIncludes.xml" xpointer="xpointer(//requestHandler)" 
/> 


In general, Solr really isn't doing anything special with XInclude ... 
it's all just delegated to the XML Libraries.  You might want to start by 
ignoring solr, and reading up on XInclude/XPointer tutorials in general, 
and experimenting with command line xml tools to figure out the syntax you 
need to get the "final" xml structures you want -- then aply that 
knowledge to the solr config files.


-Hoss

Reply via email to