[xslt] 1.0 != 1.0?
- From: Norman Walsh <ndw nwalsh com>
- To: xslt gnome org
- Subject: [xslt] 1.0 != 1.0?
- Date: Mon, 08 Jul 2002 13:44:15 -0400
Try this:
<?xml version="1.0" encoding="US-ASCII"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:ptbl="http://nwalsh.com/xslt/ext/xsltproc/python/Table"
exclude-result-prefixes="ptbl"
version='1.0'>
<xsl:template match="/">
<xsl:variable name="scale">
<xsl:choose>
<xsl:when test="@contentwidth or @contentdepth">1.0</xsl:when>
<xsl:when test="@scale">
<xsl:value-of select="@scale div 100.0"/>
</xsl:when>
<xsl:otherwise>1.0</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:message>$scale = <xsl:value-of select="$scale"/></xsl:message>
<xsl:message>Is $scale != 1.0? <xsl:value-of select="$scale != 1.0"/></xsl:message>
</xsl:template>
</xsl:stylesheet>
Be seeing you,
norm
--
Norman Walsh <ndw@nwalsh.com> | If someone tells you he is going to
http://nwalsh.com/ | make 'a realistic decision', you
| immediately understand that he has
| resolved to do something bad.--Mary
| McCarthy
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]