[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: String concatenation inside open tag
Jason Solan wrote:
How my initial thought to handle it is: If there is a javascript function for this column I would output: <a href="javascript:void(0)" Your stylesheet is a well-formed XML document so you can't never have something like an incomplete tag e.g. <a href="javascript:void(0)" in there, instead you would have e.g. <a href="javascript:void(0)"> and then inside of that you could create further attributes with xsl:attribute e.g. <xsl:attribute name="onclick"> <xsl:text>myFunction(</xsl:text> <xsl:for-each select="parameters/param"> <xsl:text>'</xsl:text> <xsl:value-of select="."/> <xsl:text>'</xsl:text> <xsl:if test="position() != last()"> <xsl:text>,</xsl:text> </xsl:if> </xsl:for-each> <xsl:text>); return false;</xsl:text> </xs:attribute> Then here you could create further attributes if needed and finally include the contents of the a element <xsl:text>Bar</xsl:text> </a> -- Martin Honnen http://JavaScript.FAQTs.com/
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|