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] Looking for an example of a name colliision
by Thomas B. Passin other posts by this author
Jun 1 2003 12:31AM messages near this date
Re: [xml-dev] Looking for an example of a name colliision | Re: [xml-dev] Looking for an example of a name colliision
[K. Ari Krupnikov]

Arjun Ray <aray@[...].net>  writes:

>  "Thomas B. Passin" <tpassin@[...].net> wrote:
>  | [Bill de hÓra]
> 
>  | >   - in my work with XML I've never run across a collision problem
>  | > that seemed to require namespaces. I wondering whether they're rare
>  | > or whether the markup I dela with is unusual.
>  | >
>  |
>  | The one that leaps to my mind is using an xslt stylesheet to create
another
>  | xslt stylesheet.  [...] now that I bring it up, there will probably be a
>  | lot of solutions popping up (I can see using special attributes to
indicate
>  | whether something is intended to be a literal result element or not)
> 
>  Yup.  It can be as simple as that.  The XSLT case is actually easier than
>  the general problem, because there are no overlaps.  All XSLT needs is the
>  moral equivalent of Lisp's quote/backquote operator.

That would need to be an XML mechanism, not an XSLT one. XSTL has

<template match="foo"> 
  <element name="template"> 
    <apply-templates/> 
  </element> 
</template> 

The problem is that you don't want to use it all the time; literal
result elements are very handy. So you could say that except for those
elements enumerated in the XSLT spec, all other ones will be treated
as literals. The problem /then/ is that any new version of the spec
that adds new elements will be backward-incompatible because it might
interpret literal elements as XSLT instructions.

[Tom P]

That is not quite the idea.  The thought is that, if an element known to the
xslt processor is supposed to be a literal result element, use a reserved
attribute to say so -

<template match='doc'> 
   <template xslLiteral='yes'> 
      .....
   </template> 
</template> 

If the attribute "xsl:literal" can appear in any xsml template, we can tell
which ones are supposed to be literals.  The processor would not put the
reserved attribute into the output.  Of course, we need some escape
mechanism if we want to output a reserved literal as well, or maybe just
using the <attribute>  instruction would be enough.

Cheers,

Tom P



-----------------------------------------------------------------
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