Is this an MCE syntax error?
MURATA Makoto
eb2m-mrt at asahi-net.or.jp
Thu Sep 20 17:29:03 CEST 2012
Dear colleagues,
Consider
<mce:AlternateContent>
<foo:bar/>
<mce:Choice ...>..</mce:Choice ... >
</mce:AtternateContent>
where mce and foo are prefixes for the MCE namespace
and an ignorable namespace.Does this fragment
have an error?
Suppose that an application program understands the
namespace foo. Then, this document has an MCE
syntax error. Suppose that it does not. Then, there
are no MCE errors.
This is because of the following text in 10.2.1 of Part 3.
AlternateContent elements might have ignored attributes
or contain ignored child elements. Markup consumers
shall not generate an error when encountering such
attributes or child elements. However, markup consumers
shall generate an error when encountering an
attribute or child element of the AlternateContent
element that belongs to a namespace that is
neither understood nor ignorable. [Note: In
addition to Choice and Fallback elements, an ignored
element can occur as a child of AlternateContent. end note]
I hate this design. Syntactical correctness of data shouldn't
depend on application programs.
Regards,
Makoto
More information about the sc34wg4
mailing list