[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

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
syntax of xsl
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.