[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Rendering: filling tag attributes via XSLT
----- Original Message ----- From: Dmitry Kachaev <greenrain@xxxxxxx> <a href='#<xsl:value-of select="@name"/>'> > <a> > <xsl:attribute> > <xsl:value-of select="@name"/> > </xsl:attribute> > ...smth... > </a> Should be <a> <xsl:attribute name="href">#<xsl:value-of select="@name"/></xsl:attribute> ... smth ... </a> I was always wondering why <xsl:variable name = qname select = expression> <!-- Content: template --> </xsl:variable> But <xsl:attribute name = { qname } namespace = { uri-reference }> <!-- Content: template --> </xsl:attribute> I mean why not <xsl:attribute name = { qname } select = expression namespace = { uri-reference }> <!-- Content: template --> </xsl:attribute> So that <a> <xsl:attribute name="href" select="concat('#', @name)"/> ...smth... </a> Rgds.Paul. XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
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
|