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

RE: static vars or how to write dirty tags

Subject: RE: static vars or how to write dirty tags
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Thu, 25 Oct 2001 12:20:37 +0100
how to write dirty emails
>     <xsl:if test="count(following-sibling::column) = 0">
>       </tr><tr>  <!-- :-) well, thats what I want to do ... -->
>     </xsl:if>
>
> Sometimes I think xml could be more flexible ... the output would be
> clean html ... :-)
>
It's not so much that XML doesn't allow this, it's that you've misunderstood
the XSLT processing model, which is based on the idea of nodes in trees.

A tr node in the stylesheet, when processed, causes a tr node to be added to
the result tree. You add nodes to the result tree, not tags, so you can't
add start tags and end tags as independent operations.

Rethink your problem. What part of the input do you want to process in order
to produce a tr node in the output? Write a template rule to grab this
amount of input, and process it as a unit.

Mike Kay




 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.