You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Patrick Sauts <pa...@gmail.com> on 2010/01/06 14:36:48 UTC
schema.xml and Xinclude
As <types/> in schema.xml are the same between all our indexes, I'd like
to make them an XInclude so I tried :
<?xml version="1.0" encoding="UTF-8"?>
<schema name="example" version="1.2"
xmlns:xi="http://www.w3.org/2001/XInclude">
<xi:include href="solr-types.xml"/>
<fields>
-
-
-
</schema>
My Syntax might not be correct ?
Or it is not possible ? yet ?
Thank you again for your time.
Patrick.
Re: schema.xml and Xinclude
Posted by Peter Wolanin <pe...@acquia.com>.
It doesn't really work with the schema.xml - I beat my head on it for
a few hours not long ago - maybe I sent an e-mail to this list about
it?
Yes, here: http://www.lucidimagination.com/search/document/ba68aa6f2f7702c3/is_it_possible_to_use_xinclude_in_schema_xml
-Peter
On Wed, Jan 6, 2010 at 8:36 AM, Patrick Sauts <pa...@gmail.com> wrote:
> As <types/> in schema.xml are the same between all our indexes, I'd like to
> make them an XInclude so I tried :
>
> <?xml version="1.0" encoding="UTF-8"?>
>
> <schema name="example" version="1.2"
> xmlns:xi="http://www.w3.org/2001/XInclude">
>
> <xi:include href="solr-types.xml"/>
> <fields>
> -
> -
> -
> </schema>
>
> My Syntax might not be correct ?
> Or it is not possible ? yet ?
>
> Thank you again for your time.
>
> Patrick.
>
--
Peter M. Wolanin, Ph.D.
Momentum Specialist, Acquia. Inc.
peter.wolanin@acquia.com