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>

This entry was posted on Monday, July 25th, 2005 at 02:02 and is filed under XML. You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed.

Comments are closed.