xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Taylor, Kevin" <Kevin_Tay...@pamperedchef.com>
Subject RE: How to...
Date Tue, 23 Jan 2001 16:23:02 GMT
Replace: <xsl:value-of...>

with: {../@id} or some variation of this.



--Kevin P. Taylor
Consultant
WidePoint Corporation

> -----Original Message-----
> From:	Samson, Lyndon [IT] [SMTP:lyndon.samson@ssmb.com]
> Sent:	Tuesday, January 23, 2001 10:19 AM
> To:	'general@xml.apache.org'
> Subject:	How to...
> 
> 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
> 
> ---------------------------------------------------------------------
> In case of troubles, e-mail:     webmaster@xml.apache.org
> To unsubscribe, e-mail:          general-unsubscribe@xml.apache.org
> For additional commands, e-mail: general-help@xml.apache.org

Mime
View raw message