|
Subject: Re: testing an attribute value and node value From: "John E. Simpson" <simpson@xxxxxxxxxxx> Date: Mon, 18 Sep 2000 20:13:33 -0400 |
I'm trying to test the value of an attribute and the value of the node, but am having trouble with the test expression. ... I want to generate HTML for each node 'F' dependent on the value of the 'n' attribute and the value of the current node. My XSL looks like;
<?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:html="http://www.w3.org/TR/REC-html40">
<xsl:template match="/">
<html>
<body>
<xsl:apply-templates />
</body>
</html>
</xsl:template> <xsl:template match="F">
<DIV>
<!-- Need to test for values of F other than 1?
If so, you'll need to go back to the xsl:choose/:when
structure. -->
<xsl:if test=".=1"><B><xsl:value-of select="@n"/> Works</B></xsl:if>
</DIV>
</xsl:template>| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: testing an attribute value and , Warren Hedley | Thread | RE: Saxon configuration (was: for-e, Kay Michael |
| RE: Has document(string) in MSXML 3, sara . mitchell | Date | RE: Has document(string) in MSXML 3, Andrew Kimball |
| Month |