value-of in an attribute

There were days that i didn’t like XSL because it seemed to be impossible to insert a value inside an attribute. For example:

<form action="<xsl:value-of select="/page/action"/>" method="post">

Today i’ve seen that other people also struggle with this issue. So here is the solution:

<form action="{/page/action}" method="post">
</form>

Leave a Comment


NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>