xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David_Mars...@lotus.com
Subject Re: How to...
Date Tue, 23 Jan 2001 16:40:35 GMT

Lyndon Samson wants this not-quite-literal result element:
  <input type='button' name='edit' value='Edit'
onClick="doEdit('<xsl:value-of select="../@id"/>')"/>

This is where xsl:attribute or attribute value templates (AVTs) would be
I'd be inclined to do this:
<xsl:attribute name="onClick"/>
  <xsl:value-of select="concat('doEdit(&apos;',../@id,'&apos;)')" />
perhaps with some extra whitespace or newlines. I hope that opens the
pathway you've been seeking.

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

We actually have tests for that, so I'm surprised. What version of Xalan
are you using? Does it help to put spaces around the = sign?
.................David Marston

View raw message