Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Schema: how to handle "color" element #77

Open
thuchacz opened this issue Apr 17, 2017 · 4 comments
Open

Schema: how to handle "color" element #77

thuchacz opened this issue Apr 17, 2017 · 4 comments
Assignees

Comments

@thuchacz
Copy link
Contributor

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.

@tcatapano
Copy link
Member

It should be allowed in the block content model. I wil add

@tcatapano tcatapano self-assigned this Apr 18, 2017
@tcatapano
Copy link
Member

@thuchacz It is already in the block content model. What validation error are you getting?

@thuchacz
Copy link
Contributor Author

@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

@tcatapano
Copy link
Member

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants