xsl-list
[Top] [All Lists]

Re: [xsl] embbed xml element value in a hidden form field

2006-03-27 20:59:49
Please try this

<input type='hidden' name='number' value='{store/number}' />

Regards,
Mukul

On 3/28/06, Insane User <michaelt(_at_)padi(_dot_)com> wrote:
Hi,

I'm trying to embed a XML value in my form:

<?xml version="1.0" encoding="ISO-8859-1"?>

<xsl:stylesheet version="1.0"
               xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
               xmlns:ws="http://www.webserviceX.NET/";
               exclude-result-prefixes="ws">

<xsl:template match="/"><html><body>

   <form method='post' action='[[my web service..]]>'>

       !-- the form stuff that seems to look and act good... -->

       <xsl:value-of select="store/number"/>      <!-- looks great -->

      <input type='hidden' name='number' value='<xsl:value-of
select="store/number"' />      <!-- doesn't work  -->

       !-- the rest of the form stuff that seems to look and act
good... -->

</form></body></html></xsl:template></xsl:stylesheet>

Where can I read this solution on the web?


Regards,
Michael

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>