URL encoding with XSLT 1.0
问题 I have a problem writing my XSL. I have a link with the following code: <a> <xsl:attribute name="href"> <xsl:value-of select="concat($myUrl,'&projectNumber=',$projectNumber)"/> </xsl:attribute> <xsl:attribute name="title"> <xsl:value-of select="title"/> </xsl:attribute> LINK </a> So I need to pass a variable projectNumber to the end of myUrl . This works just fine and I get ...myUrl...&projectNumber=...projectNumber... in HTML. The problem is, that the variable projectNumber sometimes has