[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] How to simplify this?
Hi! In the HTML-output I need a javascript function with ' mark. My template get two parameters, which I wish in single-quoted mark. So I define additional three variables for this. Is there a better way to do this? I use MSXML 4.0 and XSL 1.0 My xsl-template: <xsl:template match="QTableBox/ROW[*[1][@Type='Label']]" > <xsl:param name="tbody_id" /> <xsl:param name="thead_id" /> <xsl:variable name="apos">'</xsl:variable> <xsl:variable name="qbody_id" select="concat( $apos, $tbody_id, $apos )" /> <xsl:variable name="qhead_id" select="concat( $apos, $thead_id, $apos )" /> <tr class="tableHead"> <xsl:for-each select="*"> <xsl:variable name="colPos" select="position()-1"/> <th nowrap="nowrap"> <a href="" onclick="setArrow( {$colPos}, {$qhead_id} ); return sortTable( {$qbody_id}, {$colPos} );"> <div style="{ $ownStyle }"> <xsl:copy-of select="node()" /> <span style="visibility:hidden;"><xsl:text disable-output-escaping="yes">&nbsp;&uarr;</xsl:text></span> </div> </a> </th> </xsl:for-each> </tr> </xsl:template> best regards A. Metz
|
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
|