Open thuchacz opened 7 years ago
It should be allowed in the block content model. I wil add
@thuchacz It is already in the block content model. What validation error are you getting?
@tcatapano When I add the "color" element in 4_r1 (it's not in the xml version in the master repository right now), I get this:
System ID: /Users/thu/Github/GR8975/xml/p004r_1.xml Main validation file: /Users/thu/Github/GR8975/xml/p004r_1.xml Schema: /Users/thu/Github/GR8975/schema/testentry.dtd Engine name: Xerces Severity: error Description: Unexpected element "color". The content of the parent element type must match "(activity|material|material_format|profession|ref|sub_recipe|tool|unit)". Start location: 25:28 End location: 25:33
@thuchacz Yes, that's because the parent element is probably <purpose>
, not <block>
, and <color>
is not available in the content model of <purpose>
. Depending on what we all decide about <purpose>
it seems like it should have roughly the same model as <block>
except with <purpose>
removed.
color is in the element list, but not within the "block" possibilities. Are we still interested in this element? I would add it to 4r_1.