html - XSLT Assign Function Return Value to Variable -


i can generate id way:

<td id= "{generate-id(@value)}">  </td> 

however, want assign variable , use variable. so, tried that:

<xsl:variable name="value_holder" select="{generate-id(@value)}" /> <td id= "{$value_holder}">  </td> 

however xslt doesn't work due line:

<xsl:variable name="value_holder" select="{generate-id(@value)}" /> 

how can store variable , use inside html element?

this has solved it:

<xsl:variable name="value_holder" select="generate-id(@value)" /> <td id= "{$value_holder}">  </td> 

Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -