[
https://issues.apache.org/jira/browse/SOLR-11587?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18046457#comment-18046457
]
Jan Høydahl commented on SOLR-11587:
------------------------------------
I'll not stand in the way if anyone wants to pursue this, in a safe way.
Although, hand crafting xml with fancy features when we also support editing
schema via schema API, could potentially be an issue?
> Support xpointer attribute in xinclude to help reuse/modularization of
> schema.xml/solrConfig.xml
> ------------------------------------------------------------------------------------------------
>
> Key: SOLR-11587
> URL: https://issues.apache.org/jira/browse/SOLR-11587
> Project: Solr
> Issue Type: Improvement
> Components: SolrCloud, SolrJ
> Reporter: Apurv Nerlekar
> Priority: Minor
> Labels: newbie, solr, solr.xml, solrcloud
>
> The xinclude tag does have xpointer support as per
> http://www.w3.org/2001/XInclude which helps include specific tags from
> external xml's. Please support xpointer in solr as well. This will help in
> modularization and reusability.
> Eg:
> child.xml =
> <root>
> <field>1</field>
> <field>2</field>
> </root>
> schema.xml =
> <fields>
> <xi:include href="child.xml" *xpointer=(//root)*
> xmlns:xi="http://www.w3.org/2001/XInclude">
> </fields>
> References:
> 1. "The Xerces parser, used by default in Solr, doesn't support the
> xpointer="xpointer()" scheme." from
> https://wiki.apache.org/solr/SolrConfigXml#XInclude
> 2.
> http://lucene.472066.n3.nabble.com/XInclude-Multiple-Elements-td3167658.html
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]