Using a variable in a output element
Posted: Fri Apr 28, 2023 2:22 am
I have a simple function to output a <span/> tag . One of the <span/> attributes uses a param of the template.
The param is id, referenced in the url attribute as $id, since its in a string "taxonomy/mbe_persons1.html?refid=($id)" is is hidden and doesn't evaluate as a variable.
If I try to use the <xsl:value-of select="$id"/> in place of $id, the parser complains about using the <> characters in the url attribute.
anybody know of a way around this?
thanks, Scott
The param is id, referenced in the url attribute as $id, since its in a string "taxonomy/mbe_persons1.html?refid=($id)" is is hidden and doesn't evaluate as a variable.
If I try to use the <xsl:value-of select="$id"/> in place of $id, the parser complains about using the <> characters in the url attribute.
Code: Select all
<xsl:template name="personPageLink">
<xsl:param name="id"/>
<p><span class="addDocTab" url="taxonomy/mbe_persons1.html?refid=($id)" title="Click to see more letters" rel="People References">See more letters.</span></p>
</xsl:template>
thanks, Scott