xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Samson, Lyndon [IT]" <lyndon.sam...@ssmb.com>
Subject How to...
Date Tue, 23 Jan 2001 16:19:07 GMT
I have a XSLT for converting from XML to HTML that contains the following
fragment.

<xsl:template match="record">
<xsl:apply-templates/>

<xsl:if test="'on'=/it/parms/controls">
  <br/>
  <input type='checkbox' name='delete' value=''/>Delete
  <br/>
  <input type='button' name='edit' value='Edit'
onClick="doEdit('<xsl:value-of select="../@id"/>')"/>
  
  <br/>
</xsl:if>


<hr></hr>
</xsl:template>

The parser doesn't like the <xsl:value-of select="../@id"/> part. Next "'s
are the problem I think. How can I frame this as acceptable XML?

I'm sure the answer is very simple but my neural pathways are not firing on
this one!

BTW, the order of the <xsl:if> test seems important too,
/it/parms/controls='on' doesn't work.

thanks

Mime
View raw message