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="'&apos;alla koder kopplade till den e-post-adressen är nu skickade till dig!&apos;'"/>  

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 &apos; entity because have wrapped text ', otherwise it's no needed.


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -