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: [xml-dev] Vocabulary Combination
by Paul Prescod other posts by this author
May 29 2003 7:11PM messages near this date
Re: [xml-dev] Vocabulary Combination | Re: [xml-dev] Vocabulary Combination
Arjun Ray wrote:
>  Paul Prescod <paul@[...].net> wrote:
>  | Arjun Ray wrote:
>  
>  |> "It can't be done" is an acceptable answer, btw.
>  | 
>  | There is no global rule about the semantics of embedded namespaces. 
>  
>  Semantics ("what names mean") wasn't the issue.  If you mean that there is
>  no global rule about the generic semantics of embedding syntax (using the
>  namespaces device) then I agree.  That was, after all, my question. :-)

Right. You asked a question and I provided an answer.

>  | Any rule that handled the book/html case would fall apart in the face of 
>  | XSLT/XSLFO.
>  
>  The general problem is the same.

Not really. One is a code/literal problem. The other is a "reuse these 
semantics" problem. They are quite different which is why there is no 
general semantics for embedding namespaces.

>  | Nevertheless, they have found widespread use as a trigger for 
>  | specific processors, like XSLT engines.
>  
>  Actually, they have found widespread use for DWIMming. 

It isn't DWIMming. XSLT is very precise about how to interpret 
"extension elements" versus "literal result elements" versus "built-in 
elements". WSDL is also very precise. RDF is also very precise. They 
just don't all use the same rules. They ascribe their own semantics to 
the syntactic convention of "foreign namespaces".

>  ... The asymmetry in
>  John's first stab at a procedure is an example.   The real concern there
>  was "knowing" when to leave out #PCDATA.

If BookML were formally defined then the formal definition should tell 
you how to handle PCDATA in the extraction of the implicit XHTML 
document. People are even working on languages specific to that 
extraction problem. But the simple answer is you cannot tell how to 
segment namespaced fragments just by relying on the semantics defined in 
the Namespaces specification. You must also rely on the rule defined by 
your vocabulary.

Actually, it gets worse. If you are presented with an XML document and 
no external type metadata, there is no way to know which namespace to 
use as the one that defines the fragmentation semantics.

  Paul Prescod


-----------------------------------------------------------------
The xml-dev list is sponsored by XML.org <http://www.xml.org> , an
initiative of OASIS <http://www.oasis-open.org> 

The list archives are at http://lists.xml.org/archives/xml-dev/

To subscribe or unsubscribe from this list use the subscription
manager: <http://lists.xml.org/ob/adm.pl> 
Thread:
Arjun Ray
Rick Jelliffe
james anderson
james anderson
K. Ari Krupnikov
Bob Foster
Arjun Ray
Thomas B. Passin
Thomas B. Passin
Bob Foster
Arjun Ray
K. Ari Krupnikov
Arjun Ray
K. Ari Krupnikov
Thomas B. Passin
Simon St.Laurent
Jonathan Borden
Thomas B. Passin
K. Ari Krupnikov
Arjun Ray
Simon St.Laurent
Chiusano Joseph
Arjun Ray
Chiusano Joseph
Chiusano Joseph
Arjun Ray
Thomas B. Passin
K. Ari Krupnikov
Arjun Ray
John Cowan
Arjun Ray
Bob Foster
W. E. Perry
Arjun Ray
Chiusano Joseph
Chiusano Joseph
Chiusano Joseph
W. E. Perry
Chiusano Joseph
Thomas B. Passin
Arjun Ray
John Cowan
Arjun Ray
John Cowan
Arjun Ray
K. Ari Krupnikov
james anderson
Arjun Ray
james anderson
Arjun Ray
Rick Jelliffe
james anderson
Arjun Ray
Jonathan Borden
=?ISO-8859-1?Q?Bill_de_h=D3ra?=
Arjun Ray
W. E. Perry
Arjun Ray
Rick Jelliffe
james anderson
Arjun Ray
Rick Jelliffe
Arjun Ray
Rick Jelliffe
Arjun Ray
james anderson
Simon St.Laurent
james anderson
Rich Salz
Jaywanth
Seairth Jacobs
Joe Gregorio
Arjun Ray
Arjun Ray
John Cowan
Simon St.Laurent
Arjun Ray
Paul Prescod
Arjun Ray
Paul Prescod
Arjun Ray
Tim Bray
MURATA Makoto
Arjun Ray
J.Pietschmann
Arjun Ray
Jason Diamond
Tim Bray
Tim Bray
Simon St.Laurent
Joe Gregorio
Paul Prescod
W. E. Perry
james anderson
james anderson
james anderson
Jonathan Borden
Miles Sabin
Simon St.Laurent
Jonathan Borden
Simon St.Laurent
W. E. Perry
Jonathan Borden
Simon St.Laurent
Thomas B. Passin
Jonathan Borden
Miles Sabin
Simon St.Laurent
Simon St.Laurent
Simon St.Laurent
Simon St.Laurent
Simon St.Laurent
Jonathan Borden
=?ISO-8859-1?Q?Bill_de_h=D3ra?=
Jonathan Borden
Miles Sabin
=?ISO-8859-1?Q?Bill_de_h=D3ra?=
james anderson
=?ISO-8859-1?Q?Bill_de_h=D3ra?=
Tim Bray
james anderson
John Cowan
=?ISO-8859-1?Q?Bill_de_h=D3ra?=
Arjun Ray
W. E. Perry
james anderson
=?ISO-8859-1?Q?Bill_de_h=D3ra?=
Joe Gregorio
Joe English
Paul Prescod
Joe English
Arjun Ray
=?ISO-8859-1?Q?Bill_de_h=D3ra?=
Simon St.Laurent
Arjun Ray
Joe English
Simon St.Laurent
Simon St.Laurent
Arjun Ray

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