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

 


Help: OASIS Mailing Lists Help | MarkMail Help

relax-ng message

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


Subject: RE: QNames


BTW: I am suggesting this follow on to Murata-san's original proxy scheme IN
ADDITION to QNames, not as a complete replacement. In that spirit, it give
people the option of avoiding using QNames if they want. I believe that
having that extra option will make some people VERY happy. -Mike

-----Original Message-----
From: Michael Fitzgerald [mailto:mike@wyeast.net]
Sent: Thursday, May 31, 2001 7:12 AM
To: RNG List
Subject: RE: QNames


I think Makoto's proxy idea is very appealing. Rather than introducing a new
concept, though, couldn't we just use the prefix as the proxy name and then
just overload the ns attribute? Consider:

<grammar xmlns:e="http://www.example.com/e" proxy="yes">
<start>
<element name="addressBook" ns="e">
  <zeroOrMore>
    <element name="card" ns="e">
      <element name="name" ns="e">
        <text/>
      </element>
      <element name="email" ns="e" >
        <text/>
      </element>
    </element>
  </zeroOrMore>
</element>
</start>
</grammmar>

It's less verbose. It overloads (so to speak) the ns attribute so that it
could contain a namespace URI or prefix as a proxy name. proxy is just a
flag...perhaps unnecessary.

Casting about as usual,

Mike

MURATA Makoto wrote:
>3.  The proxy attribute
>1) Namespace declarations
>A grammar element begins with namespace delclarations (for the lack of a
better name).
>A namespace declaration declares a namespace URI and attaches a proxy to
it.
>E.g.,
><grammar>
><namespace name="http://www.example.com" nsproxy="e"/>
><start>
><element name="addressBook" nsproxy="e">
>  <zeroOrMore>
>    <element name="card" nsproxy="e">
>      <element name="name" nsproxy="e">
>        <text/>
>      </element>
>      <element name="email"  nsproxy="e" >
>        <text/>
>      </element>
>    </element>
>  </zeroOrMore>
></element>
></start>
></grammmar>
>
>Cheers,
>
>Makoto


------------------------------------------------------------------
To unsubscribe from this elist send a message with the single word
"unsubscribe" in the body to: relax-ng-request@lists.oasis-open.org



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


Powered by eList eXpress LLC