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

Re: Outputting literal and 'quoted' tags.

Subject: Re: Outputting literal and 'quoted' tags.
From: Emiliano <emile@xxxxxxxxxxxxxx>
Date: Wed, 5 Dec 2001 19:43:59 +0100 (CET)
Re:  Outputting literal and 'quoted' tags.
Mike Brown wrote:

> True, generating something that is not even valid HTML is impossible
> without resorting to text mode or disable-output-escaping hacks. I
> would question the need to generate such code, though.
>
> You could easily generate this:
>
> <?php if ($value == 'yes') { ?>
>   <input type="checkbox" name="{@id}" value="yes" checked="checked"/>
> <?php } else { ?>
>   <input type="checkbox" name="{@id}" value="yes"/>
> <?php } ?>
>
> with this:
>
> <xsl:processing-instruction name="php">
>   <xsl:text>if ($value == 'yes') { </xsl:text>
> </xsl:processing-instruction>
> <input type="checkbox" name="{@id}" value="yes" checked="checked"/>
> <xsl:processing-instruction name="php">
>   <xsl:text>} else { </xsl:text>
> </xsl:processing-instruction>
> <input type="checkbox" name="{@id}" value="yes"/>
> <xsl:processing-instruction name="php">
>   <xsl:text>} </xsl:text>
> </xsl:processing-instruction>

True, but there are several spots where it gets lots more complex than
this (constructing tables form the input, for example. But point well
taken.

Emile



 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.