[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] syntax of XSL Patterns [was Re: XSL Discussion]
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|