Subject: procedural style XSL From: "Earl Bingham" <earl@xxxxxxxxx> Date: Thu, 16 Sep 1999 11:08:31 -0700 |
Can't you write your stylesheets in a procedural manner? The following examples breaks up the xml output into various chunks that can be procedurally called when creating the output. The following is what I mean: <xsl:template match="docRoot"> <html> <xsl:call-template name="headerTemplate"/> <xsl:call-template name="bodyTemplate"/> </html> </xsl:template> <!-- Header Template --> <xsl:template name="headerTemplate"> <head> <title><xsl:value-of select="docRootTitle"/></title> </head> </xsl:template> <!-- Body Template --> <xsl:stylesheet name="bodyTemplate"> <body> <xsl:call-template name="firstSectionTemplate"/> </body </xsl:stylesheet> -----Original Message----- From: owner-xsl-list@xxxxxxxxxxxxxxxx [SMTP:owner-xsl-list@xxxxxxxxxxxxxxxx] On Behalf Of Hunter, David Sent: Wednesday, September 15, 1999 2:28 PM To: 'xsl-list@xxxxxxxxxxxxxxxx' Subject: RE: What will be the future improvements of XSLT? From: Simon St.Laurent [mailto:simonstl@xxxxxxxxxxxx] Sent: Wednesday, September 15, 1999 4:07 PM > Most of the Web developers I work with who are building XML-oriented > applications already have JavaScript and/or Java skills, and find XSL > occasionally useful at best, hair-pulling frustrating at worst. Yep, this is me. My programming skills are exclusively procedural, but on occasion I have found XSL to be the best bet for a particular task. And I happened to find it useful AND hair-pulling frustrating. :-) I was just starting to get to the point where I could see the power in XSL, when I finished my task and washed my hands of it, to go back to my procedural languages... David Hunter (who wishes he was weird, but usually ends up pretty normal) david.hunter@xxxxxxxxxxxxx MediaServ Information Architects http://www.MediaServ.com XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: What will be the future improve, Hunter, David | Thread | RE: What will be the future improve, Kay Michael |
Re: Combine Java and XSL: to put co, Cees Dekker | Date | Re: What will be the future improve, James Clark |
Month |