← Prev in month ← Prev in thread

Issue: TREX elements appearing in foreign elements (Re: A TREX<documentation> element)

From
Murata Makoto <>
Date
2001-04-19T23:56:34+00:00
ID
Thread
Issue: TREX elements appearing in foreign elements (Re: A TREX<documentation> element)
Michael Fitzgerald wrote:

> I guess there is no reason why someone could not just use:
> 
> <grammar xmlns:xsd="http://www.w3.org/2001/XMLSchema">
>   <element name="block">
>     <xsd:annotation>
>       <xsd:documentation>This element represents...</xsd:documentation>
>     </xsd:annotation>
>   </element>
>  ...

Are elements of the TREX namespace allowed to appear in subelements 
of foreign namespaces?  For example:

<grammar xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <element name="block">
    <xsd:annotation>
      <xsd:documentation>This element represents...</xsd:documentation>
       <element name="block">
       </element name="block">
    </xsd:annotation>
  </element>

Some SAX programmers will fail to handle such patterns correctly.  I 
would propose to disallow such patterns, since I see no advantages 
in allowing them.

Cheers,

Makoto
← Prev in month ← Prev in thread