|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Writing out '<', not '<'.
An alternative would be:
<xsl:output method="html"/>
<xsl:template match="/">
<body>
<xsl:if test="your test">
<xsl:attribute name="bgcolor">white</xsl:attribute/>
</xsl:if>
document body
</body>
>/xsl:template>
You could also use:
<xsl:output method="html"/>
<xsl:variable name="bgcolor" select="string('white')/>
<xsl:template match="/">
<body bgcolor={$bgcolor}>
document body
</body>
>/xsl:template>
These examples follow the current XSL syntax. Microsoft's XSL support is a
year out of date.
Jon Smirl
jonsmirl@xxxxxxxxxxxx
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








