syntax of XSL Patterns [was Re: XSL Discussion]

Subject: syntax of XSL Patterns [was Re: XSL Discussion]
From: Paul Grosso <paul@xxxxxxxxxxxxx>
Date: Mon, 23 Feb 1998 12:09:40 -0500
At 03:00 1998 02 23 -0500, Jeremie Miller wrote:

>Lets talk about the patterns for a bit.  Maybe it's just a matter of syntax,
>but I would feel more comfortable writing something like:
>  <chapter>
>    <p type="introduction" xml:style="target"/>
>  </chapter>
>instead of
>  <element type="chapter">
>    <target-element type="p">
>      <attribute name="type" value="chapter"/>
>    </target-element>
>  </element>
>There might be some good reasons why the first simpler and more
>understandable(IMHO) pattern just won't work, but I haven't found any
>killers yet.

As James Tauber says, the "problem" with your suggestion is that
you can't do what you suggest in valid XML.  Either you need to
use namespaces, or you have to give up validity (or, perhaps, there
is some way with dynamic internal subsets for all stylesheets, but
I'm not even going to consider this one).

It is not out of the question that we revisit patterns in light
of progress with namespaces, but there are a lot of issues associated
with this, the big two being that you can no longer assume a constant
DTD for all XSL stylesheets and you have to have make your XSL processor
namespace-aware.


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread