|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: rookie questions - Try 2
This may not win any awards for elegance but it works:
I had a for-each loop that printed <filter name> <filter selection> where name was simply text and selection could be a drop-down or free form text entry. I wanted to switch to <filter name> <filter selection> <filter name> <filter selection> What I did was: <xsl:if test="position() mod 2 = 1"> <xsl:text disable-output-escaping = "yes" ><TR></xsl:text> <code to print filter name and selection> and then <xsl:if test="position() mod 2 = 0"> <code to print filter name and selection> <xsl:text disable-output-escaping = "yes" ></TR></xsl:text> I could not simply print the <TR> or </TR> because then the <TR> would come in one if statement and the </TR> in the other if statement and this apparently is illegal. More elegant solutions are always appreciated, but this works. Also - if there are any other new-users browsing this list don't let any   tags slip in to your code or you will have funky browser-specific formatting issues. From: "Noah Nordrum" <noah@xxxxxxxxxxxxx> Reply-To: xsl-list@xxxxxxxxxxxxxxxx To: xsl-list@xxxxxxxxxxxxxxxx Subject: Re: rookie questions - Try 2 Date: Tue, 18 Apr 2000 10:54:48 -0400
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
|

Cart








