[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
> <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
|
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
|