Skip to content
This repository has been archived by the owner on Nov 9, 2022. It is now read-only.

Using space-separated include/exclude elem names in ml-config breaks #226

Closed
grtjn opened this issue Apr 30, 2014 · 0 comments
Closed

Using space-separated include/exclude elem names in ml-config breaks #226

grtjn opened this issue Apr 30, 2014 · 0 comments

Comments

@grtjn
Copy link
Contributor

grtjn commented Apr 30, 2014

Using the following field def in ml-config.xml:

<field>
<field-name>book-title</field-name>
<include-root>false</include-root>
<three-character-searches>true</three-character-searches>
<included-elements>
<included-element>
<namespace-uri>http://docbook.org/ns/docbook</namespace-uri>
<localname>book</localname>
<weight>1.0</weight>
<attribute-namespace-uri />
<attribute-localname />
<attribute-value />
</included-element>
</included-elements>
<excluded-elements>
<excluded-element>
<namespace-uri>http://docbook.org/ns/docbook</namespace-uri>
<localname>titleabbrev subtitle info glossary bibliography index toc dedication acknowledgements preface chapter appendix article colophon part reference</localname>
<attribute-namespace-uri />
<attribute-localname />
<attribute-value />
</excluded-element>
</excluded-elements>
</field>

Causes bootstrap to fail with the following message:

Bootstrapping your project into MarkLogic on localhost...
ERROR: [{"qid":null, "type":"string", "result":"XDMP-AS: (err:XPTY0004) $localname as xs:string -- Invalid coercion: <db:localname xmlns:db=\"http:\/\/marklogic.com\/xdmp\/database\">titleabbrev subtitle info glossary bibliography index toc itemiz...<\/db:localname> as xs:string\nSee MarkLogic Server error log for more details."}]
ERROR: ... Bootstrap FAILED
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants