On 16/05/16 18:35, Raffaele Viglianti wrote:
1. The ODD that I created is currently not valid because empty <content/> is not allowed, but should be
As noted, this is fixed in the current source, but hasn't resulted in a new bugfixing release. Should it?
2. I've noticed that the latest tei_odds RNG http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_odds.rng doesn't validate PureODD. E.g. it says element "dataSpec" not allowed anywhere. Does the ODD need to be updated? Or maybe the correct RNG just wasn't generated at release time?
I don't think any that's ever been included in a release. But if you open Exemplars/tei_odds.odd and generate a schema from it, you'll get one that does allow dataSpec. At least, that's what I just did.
<dataSpec ident="meidata.twoDecimals"> <content> <sequence> <dataRef name="decimal"/> <dataRef name="decimal"/> </sequence> </content> <dataSpec>
results in the RNG:
<group> <data type="decimal"/> <data type="decimal"/> </group> Which Jing doesn't like: "Error: group of "string" or "data" element". The rng element that should be used in this case is
http://relaxng.org/tutorial-20011203.html#IDAK0YR> instead of <group>.
Rats. Probably a stylesheet issue then. Hugh? BTW, after sending that response, I remembered that there is an already existing TEI datatype (teidata.point) which matches two decimal numbers. But it requires them to be separated by a comma. Would that not work for you?