Skip to content

Instantly share code, notes, and snippets.

@davidascher
Created November 15, 2013 21:51
Show Gist options
  • Select an option

  • Save davidascher/7492269 to your computer and use it in GitHub Desktop.

Select an option

Save davidascher/7492269 to your computer and use it in GitHub Desktop.
davida@suki ~/s/ceci-polymer> xmllint ceci-app-test.html --relaxng ceci-app.rng
<?xml version="1.0"?>
<ceci-app>
<ceci-card visible="true">
<ceci-listen on="green" for="show"/>
<ceci-top>
<ceci-button label="Say hello!" value="hi"><ceci-broadcast on="blue" from="click"/></ceci-button>
</ceci-top>
<ceci-middle>
<ceci-button label="Flip!"><ceci-broadcast on="red" from="click"/></ceci-button>
<ceci-hello><ceci-listen on="blue" for="hello"/></ceci-hello>
</ceci-middle>
<ceci-bottom>
<ceci-button label="Say goodbye!" value="bye"><ceci-broadcast on="blue" from="click"/></ceci-button>
</ceci-bottom>
</ceci-card>
<ceci-card>
<ceci-listen on="red" for="show"/>
<ceci-top/>
<ceci-middle>
<ceci-hello status="UHOH"/>
</ceci-middle>
<ceci-bottom>
<ceci-button label="Go back!"><ceci-broadcast on="green" from="click"/></ceci-button>
</ceci-bottom>
</ceci-card>
</ceci-app>
ceci-app-test.html:4: element ceci-top: Relax-NG validity error : Expecting element ceci-listen, got ceci-button
ceci-app-test.html:5: element ceci-button: Relax-NG validity error : Element ceci-top has extra content: ceci-button
ceci-app-test.html:7: element ceci-middle: Relax-NG validity error : Expecting element ceci-listen, got ceci-button
ceci-app-test.html:8: element ceci-button: Relax-NG validity error : Element ceci-middle has extra content: ceci-button
ceci-app-test.html:11: element ceci-bottom: Relax-NG validity error : Expecting element ceci-listen, got ceci-button
ceci-app-test.html:12: element ceci-button: Relax-NG validity error : Element ceci-bottom has extra content: ceci-button
ceci-app-test.html:18: element ceci-middle: Relax-NG validity error : Expecting element ceci-listen, got ceci-hello
ceci-app-test.html:19: element ceci-hello: Relax-NG validity error : Element ceci-middle has extra content: ceci-hello
ceci-app-test.html:21: element ceci-bottom: Relax-NG validity error : Expecting element ceci-listen, got ceci-button
ceci-app-test.html:22: element ceci-button: Relax-NG validity error : Element ceci-bottom has extra content: ceci-button
ceci-app-test.html fails to validate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment