Created
March 21, 2017 13:10
-
-
Save jamescummings/b01882b2e33f612ec7ea361c6060698a to your computer and use it in GitHub Desktop.
elementSpecs trying to purify tei_xinclude.odd (or indeed add XInclude to my own odd)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<elementSpec ident="include" ns="http://www.w3.org/2001/XInclude" mode="add"> | |
<desc xml:lang="en" versionDate="2014-01-12">The W3C XInclude element</desc> | |
<classes> | |
<memberOf key="model.common"/> | |
<memberOf key="model.teiHeaderPart"/> | |
</classes> | |
<content> | |
<elementRef key="fallback" minOccurs="0" maxOccurs="1"/> | |
</content> | |
<attList> | |
<attDef ident="href"> | |
<desc xml:lang="en" versionDate="2014-01-12">pointer to the resource being included</desc> | |
<datatype> | |
<dataRef key="teidata.pointer"/> | |
</datatype> | |
</attDef> | |
<attDef ident="parse" usage="opt"> | |
<defaultVal>xml</defaultVal> | |
<valList type="closed"> | |
<valItem ident="xml"/> | |
<valItem ident="text"/> | |
</valList> | |
</attDef> | |
<attDef ident="xpointer" usage="opt"> | |
<datatype> | |
<textNode/> | |
</datatype> | |
</attDef> | |
<attDef ident="encoding" usage="opt"> | |
<datatype> | |
<textNode/> | |
</datatype> | |
</attDef> | |
<attDef ident="accept" usage="opt"> | |
<datatype> | |
<textNode/> | |
</datatype> | |
</attDef> | |
<attDef ident="accept-charset" usage="opt"> | |
<datatype> | |
<textNode/> | |
</datatype> | |
</attDef> | |
<attDef ident="accept-language" usage="opt"> | |
<datatype> | |
<textNode/> | |
</datatype> | |
</attDef> | |
</attList> | |
</elementSpec> | |
<elementSpec ident="fallback" ns="http://www.w3.org/2001/XInclude" mode="add"> | |
<desc xml:lang="en" versionDate="2014-01-12">Wrapper for fallback elements if an XInclude fails</desc> | |
<content> | |
<alternate> | |
<textNode/> | |
<anyElement/> | |
</alternate> | |
</content> | |
</elementSpec> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@lb42 points out that I should change these attribute datatypes to
which does seem right. But I'm still getting the same schematron error in oXygen: datatype content must be in the namespace ''