Re: [tei-council] purifying tei_xinclude.odd exemplar
Actually, now that I've tried it, I still get the same schematron error. Changed them all to: <datatype> <dataRef key="teidata.text"/> </datatype> but I still get: datatype content must be in the namespace '' Have I mis-declared the @ns on the elementSpec? -James On 21/03/17 13:33, Lou Burnard wrote:
You cant use textNode as a child of datatype. Change them tp datRef key teidata.text
Sent from my Huawei Mobile
-------- Original Message -------- Subject: purifying tei_xinclude.odd exemplar From: James Cummings To: TEI Council ,Lou Burnard CC:
Hi all,
Because we should just purify these, but mostly because I wanted to include XInclude into an ODD I'm writing, I tried to purify the elementSpecs in https://github.com/TEIC/TEI/blob/dev/P5/Exemplars/tei_xinclude.odd#L73
My attempt is at https://gist.github.com/jamescummings/b01882b2e33f612ec7ea361c6060698a
But keeps giving me a schematron error "datatype content must be in the namespace '' ".
I remember having a conversation with Lou about datatypes and namespaces but can someone remind me why I'm getting this error?
-James
-- Dr James Cummings, James.Cummings@it.ox.ac.uk Academic IT Services, University of Oxford
-- Dr James Cummings, James.Cummings@it.ox.ac.uk Academic IT Services, University of Oxford
Mysterious. I reproduced this so now I believe you. It looks like the schematron rule for validating the content of content needs a second look, but I cannot see where that rule is being fired. I suspect it's our old friend anyElement causing this.: I tried modifying <content> so that it doesn't permit any RelaxNG content, and the errors disappeared. On 21/03/17 15:11, James Cummings wrote:
Actually, now that I've tried it, I still get the same schematron error.
Changed them all to: <datatype> <dataRef key="teidata.text"/> </datatype>
but I still get: datatype content must be in the namespace ''
Have I mis-declared the @ns on the elementSpec?
-James
On 21/03/17 13:33, Lou Burnard wrote:
You cant use textNode as a child of datatype. Change them tp datRef key teidata.text
Sent from my Huawei Mobile
-------- Original Message -------- Subject: purifying tei_xinclude.odd exemplar From: James Cummings To: TEI Council ,Lou Burnard CC:
Hi all,
Because we should just purify these, but mostly because I wanted to include XInclude into an ODD I'm writing, I tried to purify the elementSpecs in https://github.com/TEIC/TEI/blob/dev/P5/Exemplars/tei_xinclude.odd#L73
My attempt is at https://gist.github.com/jamescummings/b01882b2e33f612ec7ea361c6060698a
But keeps giving me a schematron error "datatype content must be in the namespace '' ".
I remember having a conversation with Lou about datatypes and namespaces but can someone remind me why I'm getting this error?
-James
-- Dr James Cummings, James.Cummings@it.ox.ac.uk Academic IT Services, University of Oxford
participants (2)
-
James Cummings
-
Lou Burnard