OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

plcs-dex message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: ANt and validation errors


Hi

It is important that the XML that we develop for the templates etc is valid.

The best way to ensure this is to use an XML editor that has validation build in.

 

I have modified the ant build so that it can test the validaity of he XML.

 

cd utils/dex

ant –e –q templates

 

This gives the following errors

 

ant -e -q valid_templates

D:\users\rbn\sforge\plcs\dexlib\data\templates\assigning_condition\template.xml:131:25: The content of element type "model_diagram" must match "(description?,figure)".

D:\users\rbn\sforge\plcs\dexlib\data\templates\assigning_condition\template.xml:236:36: The content of element type "instance_diagram_example" must match "(template_example,description?,figure)".

D:\users\rbn\sforge\plcs\dexlib\data\templates\assigning_condition\template.xml is not a valid XML document

D:\users\rbn\sforge\plcs\dexlib\data\templates\assigning_descriptor\template.xml:152:17: The content of element type "figure" must match "(title,img)".

D:\users\rbn\sforge\plcs\dexlib\data\templates\assigning_descriptor\template.xml:218:37: The content of element type "instance_diagram_example" must match "(template_example,description?,figure)".

D:\users\rbn\sforge\plcs\dexlib\data\templates\assigning_descriptor\template.xml:247:25: The content of element type "characterizations" must match "(characterization_diagram?,characterization*)".

D:\users\rbn\sforge\plcs\dexlib\data\templates\assigning_descriptor\template.xml is not a valid XML document

D:\users\rbn\sforge\plcs\dexlib\data\templates\assigning_reference_data\template.xml:219:38: The content of element type "instance_diagram_example" must match "(template_example,description?,figure)".

D:\users\rbn\sforge\plcs\dexlib\data\templates\assigning_reference_data\template.xml is not a valid XML document

D:\users\rbn\sforge\plcs\dexlib\data\templates\independent_property_numeric\template.xml:16:23: Attribute value "" of type NMTOKEN must be a name token.

D:\users\rbn\sforge\plcs\dexlib\data\templates\independent_property_numeric\template.xml is not a valid XML document

D:\users\rbn\sforge\plcs\dexlib\data\templates\representing_geographical_location\template.xml:310:20: The content of element type "p" must match "(dex_ref|capability_ref|business_concept_ref|section_ref|table_ref|figure_ref|activity_inc|icom_inc|template_ref|template_table_ref|express_ref|express_extref|module_ref|rdl_ref|code|help_ref|exchange_file|i|b|sub|sup|tt|a|br)".

D:\users\rbn\sforge\plcs\dexlib\data\templates\representing_geographical_location\template.xml is not a valid XML document

D:\users\rbn\sforge\plcs\dexlib\data\templates\representing_independent_property\template.xml:16:23: Attribute value "" of type NMTOKEN must be a name token.

D:\users\rbn\sforge\plcs\dexlib\data\templates\representing_independent_property\template.xml is not a valid XML document

D:\users\rbn\sforge\plcs\dexlib\data\templates\representing_organizational_location\template.xml:184:37: The content of element type "instance_diagram_example" must match "(template_example,description?,figure)".

D:\users\rbn\sforge\plcs\dexlib\data\templates\representing_organizational_location\template.xml:220:22: The content of element type "p" must match "(dex_ref|capability_ref|business_concept_ref|section_ref|table_ref|figure_ref|activity_inc|icom_inc|template_ref|template_table_ref|express_ref|express_extref|module_ref|rdl_ref|code|help_ref|exchange_file|i|b|sub|sup|tt|a|br)".

D:\users\rbn\sforge\plcs\dexlib\data\templates\representing_organizational_location\template.xml is not a valid XML document

D:\users\rbn\sforge\plcs\dexlib\data\templates\representing_product_configuration\template.xml:16:23: Attribute value "" of type NMTOKEN must be a name token.

D:\users\rbn\sforge\plcs\dexlib\data\templates\representing_product_configuration\template.xml:155:61: Attribute "optiona" must be declared for element type "characterization".

D:\users\rbn\sforge\plcs\dexlib\data\templates\representing_product_configuration\template.xml is not a valid XML document

D:\users\rbn\sforge\plcs\dexlib\data\templates\representing_product_variant\template.xml:16:23: Attribute value "" of type NMTOKEN must be a name token.

D:\users\rbn\sforge\plcs\dexlib\data\templates\representing_product_variant\template.xml:155:61: Attribute "optiona" must be declared for element type "characterization".

D:\users\rbn\sforge\plcs\dexlib\data\templates\representing_product_variant\template.xml is not a valid XML document

 

Regards
Rob

-------------------------------------------   
Rob Bodington
Eurostep Limited
Web Page:
http://www.eurostep.com http://www.share-a-space.com
Email: Rob.Bodington@eurostep.com
Phone: +44 (0)1452 810 960
Mobile: +44 (0)7796 176 401

 

This message contains information that may be privileged or confidential and is the property of Eurostep Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]