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

Re: HTML characters being converted

Subject: Re: HTML characters being converted
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 2 Dec 1999 16:56:06 GMT
xsl html being converted
] I'm keeping a counter of
] how many <td>s I've outputted for a <tr> and conditionally I want to
] spit out a </tr> if the counter has reached the number of columns value.

This is just socially unacceptable behavour in xsl-land:-)

You are thinking in terms of a particular linearised syntax for
the XML tree. and wanting to put the characters </tr> somewhere.

But the tree might not be linearised at all it might be being stuffed
straight into some other XML application.

so what you want to do is generate you td elements n at a time
and stuff them all into a tr element in your result tree.

so <xsl:for-each select="???">
   <tr>
    <xsl:apply templates select="?? ?? ??"/>
   </tr>
   </xsl:for-each>

You just need the right expressions so the right number of elements get
put into each tr element.

The archives of this list will no doubt have some example code thatshows
how to do what you want. I'd include some here but it's hard to be sure
exactly what your input and desired output is, from your description.

David


 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.