Validation against the VML schemas cannot be separated from that against the rest of OOXML. In other words, a WordprocessingML document cannot be validated without performing validation against the VML schemas.

Specify "skip" as the value of "processContents" attribute.

Part 4 Annex A

te

Proposed Disposition of DIS 29500 Comment JP-0069 (Modified: 2008-01-10) We completely agree that we need to have the capacity to validate Open XML documents against the Open XML schemas excluding the VML schemas. If a particular Open XML consumer does not support VML, that consumer should be able to validate its document without using or requiring the VML schemas in any way. In addition, if a particular Open XML consumer chose to support VML, then that consumer should be able to validate using the VML schemas. In two locations in the WordprocessingML schema, the processContents attribute of the xsd:any element is set to lax . If the processContents attribute of the xsd:any element is set to "lax", then the schema processor will validate elements for which it can find declarations, as described in §3.10.2 of the XML Schema specification ( http://www.w3.org/TR/xmlschema-1/ ), which reads: lax If the item has a uniquely determined declaration available, it must be ·valid· with respect to that definition, that is, ·validate· if you can, don’t worry if you can’t. The schema wml.xsd imports the VML namespace, and has a schemaLocation attribute set to "vml-main.xsd". Per the W3C XSD standard, the schemaLocation attribute is just a hint; the processor is not required to resolve it. Therefore, it is valid to simply remove the VML schemas, and the VML contained at these locations should not be validated. To ensure this use of processContents was supported cross-platform, the schemas were tested with Xerces-J, version 2.9.1, and observed the following: 1) If the VML schemas are present, and the document contains valid VML markup, then the document validates. 2) If the VML schemas are present, and the document contains invalid VML markup, then the document fails to validate, as expected. 3) If the VML schemas are not present, then regardless of whether the VML markup is valid or not, the document validates. We also tested with Microsoft’s schema validator, and observed the same behaviour, which matches the XSD standard. If we were to change from lax to skip , then it would not be possible to validate the VML elements by a consumer who chose to support VML. Therefore, we propose to not change the processContents attribute of the xsd:any element to skip , but to leave it as lax .

Tag and Go

No Comments

Sorry, the comment form is closed at this time.

  • Argentina (1)
  • Australia (30)
  • Austria (1)
  • Belgium (1)
  • Brazil (64)
  • Bulgaria (3)
  • Canada (79)
  • Chile (217)
  • China (1)
  • Colombia (237)
  • Czech Republic (75)
  • Denmark (168)
  • Ecma (76)
  • Ecuador (1)
  • Finland (15)
  • France (592)
  • Germany (162)
  • Ghana (12)
  • Greece (113)
  • India (82)
  • Iran (58)
  • Ireland (12)
  • Israel (33)
  • Italy (2)
  • Japan (82)
  • Jordan (1)
  • Kenya (81)
  • Malaysia (23)
  • Malta (5)
  • Mexico (7)
  • New Zealand (54)
  • Norway (12)
  • Peru (10)
  • Philippines (7)
  • Poland (4)
  • Portugal (118)
  • Singapore (2)
  • South Africa (17)
  • South Korea (25)
  • Spain (1)
  • Switzerland (19)
  • Thailand (1)
  • Tunisia (3)
  • Turkey (1)
  • UK (635)
  • Uruguay (18)
  • USA (288)
  • Venezuela (73)