Xsl tag inside html tag.
This is an open discussion with 6 replies, filed under Troubleshooting.
Search
Easy, you can put any XSL you like inside an xsl:attribute
tag to put the result in an html-attribute.
<div> <xsl:attribute name="style"> <xsl:text>width: </xsl:text><xsl:value-of select="percentfull"/><xsl:text>;</xsl:text> </xsl:attribute> </div>
Or, even simpler:
<div style="width:{percentfull}%"></div>
{percentfull}
Which is called Attribute Value Template (AVT) — I've learned that from Allen.
I've learned that from Allen.
And all this wisdom is then spread out to the rest of the world. Thank you internet!
DO YOUR EXAMS.
:-)
I was breaking my head over this for days thanks guys awesome community!
Create an account or sign in to comment.
I have a percentage bar on my website and I need to parse the value from data source to an html tag.
What I'm trying to do is:
Thanks for any help :)