[
https://issues.apache.org/jira/browse/SOLR-11587?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18046493#comment-18046493
]
David Smiley commented on SOLR-11587:
-------------------------------------
"could be an issue"
What kind of issue?
XInclude would be typically used for ClassicSchemaFactory, not the "managed"
one -- thus no edit API. But if I were to guess -- the edit API would resolve
all xinclude. and write a complete file without xinclude. Remember that Solr
already supports xinclude (it's tested; I've tried it); the issue here enhances
its xinclude support.
> 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]