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

<xsl:template match="record">

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


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.


View raw message