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

procedural style XSL

Subject: procedural style XSL
From: "Earl Bingham" <earl@xxxxxxxxx>
Date: Thu, 16 Sep 1999 11:08:31 -0700
xslt procedural
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

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.