xml - adding select-attribute using the "attribute"-tag in xslt not working -
how come not work:
<xsl:with-param name="message"> <xsl:attribute name="select"> <xsl:text>'alla koder kopplade till den e-post-adressen är nu skickade till dig!'</xsl:text> </xsl:attribute> </xsl:with-param>
you need:
<xsl:with-param name="message" select="''alla koder kopplade till den e-post-adressen är nu skickade till dig!''"/>
whenever declare param or variable without select
attribute , content template, variable or parameter of type result tree fragment. whenever output attribute node, it's error if don't output before other node type of element's content template. error recovery mechanism silently output nothing. in xslt 2.0 error rised.
note: i'm ussing '
entity because have wrapped text '
, otherwise it's no needed.
Comments
Post a Comment