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

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

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