ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> xml-dev
xml-dev
Re: Why the Infoset?
by Jonathan Borden other posts by this author
Aug 3 2000 8:46PM messages near this date
Re: Why the Infoset? | Re: Why the Infoset?
John Cowan wrote:

>  Jonathan Borden wrote:
> 
>  > But it is not hard to describe, that is my point. The XML 1.0 production
>  > rules create a parse tree which exactly describes the source document,
down
>  > to the byte. This is what I would call the XML property set, and from
this
>  > one can subset to one's desire.
> 
>  Okay, I understand now.  Actually the production-rule level is *not* the
>  bottom parsing level, because for the most part PE-references have already
>  been removed.

I new there was a reason why you got this job :-)

PE-Reference is production [69] so it can be represented in a production
rule tree, the issue is that the elementDecl tree cannot be built until the
PE-Reference is expanded.

I would handle this as an <alt>  with both the PE-Reference and following
character content, and its expanded form side by side.

e.g.

<PEDecl p="72"> 
    <seq> 
        <S> <c char=" "/></S>
        <Name> element</Name>
        <S> <c char=" "/></S>
        <EntityDef> <string value="<!ELEMENT" /></EntityDef>
     </seq> 
</PEDecl> 

and

<alt> 
 <seq> 
   <PEReference> <Name>element</Name></PEReference>
   <S char=" "/> <string value="FOO EMPTY>" />
  </seq> 
 <elementDecl> 
    <seq> 
        <S/> 
        <Name> FOO</Name>
        <S/> 
        <contentSpec> EMPTY</contentSpec>
    </seq> 
 </elementDecl> 
</alt> 


>  Internal PEs are not really structural in XML;
>  it is a mere validity constraint that requires DTD constructs to begin
>  and end in the same PE, and
> 
>  <!ENTITY % element "<!ELEMENT">
>  %element; FOO EMPTY>
> 
>  is a well-formed though not valid external subset.
> 
>  > Doesn't it make the most sense to subset from the full description,
rather
>  > than both add to and subtract from a partial description?
> 
>  The question then remains, just what is
>  useful structure and what is not?  I have done my best to answer that
>  question.

Useful for the DOM and XPath, I agree, but since these already exist, and
define the middle subset, now is the time to define the full set.

I have no problem with what the Infoset is trying to accomplish as a subset
of XML 1.0 + Names (just as I have no problem with what Common XML etc are
trying to accomplish), but this activity needs to come from a complete base
down to X,Y or Z subset each of which are useful.

Jonathan Borden
The Open Healthcare Group
http://www.openhealth.org
Thread:
Paul W. Abrahams
Rick JELLIFFE
W. E. Perry

Jonathan Borden
Simon St.Laurent
Jonathan Borden
Simon St.Laurent
John F. Schlesinger
Jonathan Borden
Simon St.Laurent
W. E. Perry
John Cowan
Rick JELLIFFE
Rick JELLIFFE
Sean McGrath
Simon St.Laurent
Jonathan Borden
Sean McGrath
Rick JELLIFFE
Rick JELLIFFE
Simon St.Laurent
James Robertson
Simon St.Laurent
Jonathan Borden
Simon St.Laurent
Paul W. Abrahams
Jonathan Borden
Paul W. Abrahams
Rick JELLIFFE
Dan Vint
Rick JELLIFFE
Marcus Carr
Michael Champion
John Cowan
John Cowan
John Cowan
Michael Champion
Winchel 'Todd' Vincent, III
John Cowan
Jonathan Borden
sam th
Jonathan Borden

Simon St.Laurent
John Cowan
John Cowan
John Cowan
Simon St.Laurent
Richard Lanyon
John Cowan
Jonathan Borden
John Cowan
Simon St.Laurent
John Cowan
Jonathan Borden
Rick JELLIFFE
james anderson
Winchel 'Todd' Vincent, III
Winchel 'Todd' Vincent, III
Rick JELLIFFE

Norman Walsh
Jonathan Borden
Winchel 'Todd' Vincent, III
Jonathan Borden
Norman Walsh
Winchel 'Todd' Vincent, III
Amy Lewis

Eric Bohlman

John Cowan
Simon St.Laurent
Jeff Greif
Jonathan Borden
Elliotte Rusty Harold
Sean McGrath
Simon St.Laurent
Joe English
Simon St.Laurent
Jonathan Borden
Simon St.Laurent
W. E. Perry
Jonathan Borden
John Cowan
John Cowan
Sean McGrath
W. E. Perry
John F. Schlesinger
Sean McGrath
Michael Champion
Michael Champion
Paul W. Abrahams
John Cowan
Paul W. Abrahams
Paul W. Abrahams
Simon St.Laurent
Martin Gudgin
Jonathan Borden
Simon St.Laurent
Tim Bray
Jonathan Borden
Jack Rusher
Steve Rowe

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved