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

Re: More XSL Discussion

Subject: Re: More XSL Discussion
From: Paul Prescod <papresco@xxxxxxxxxxxxxxxx>
Date: Tue, 24 Feb 1998 16:40:11 -0500
Re: More XSL Discussion
Michael Kay wrote:
> 
> You're right, it doesn't make sense to create half an HTML element. It does
> make sense, however, to generate one "output" HTML element as a result of
> encountering a fairly complex input XML pattern. 

This is a hard problem, but matching larger patterns may well be the
best way to attack this. Still, one must weigh the cost of complicating
the language with a new construct vs. using ad hoc coding tricks in the
rare case that it comes up. The convention I would usually use is

Check if node is first in row
   if so, make the wrapper, and 
	process it's matching siblings in a special mode
   else don't do anything

<special-mode>
	put the real behaviour for the nodes here
</special-mode>

This is ugly, but not too painful. The alternative is a whole new
language construct for multi-element pattern matching.

I could be wrong, but I think that this is the kind of problem that the
"transformation part" of DSSSL (which is not really on the table for web
implementation) is supposed to be really good at -- pattern matching to
augment structure. Perhaps people like James and Henry who are
knowledgable about both will find a reasonable way to combine them.

Paul Prescod  - http://itrc.uwaterloo.ca/~papresco

[Woody Allen on Hollywood in "Annie Hall"]
Annie: "It's so clean down here."
Woody: "That's because they don't throw their garbage away. They make 
        it into television shows."


 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.