You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Johannes Wechsler <jo...@mchp.siemens.de> on 2002/09/06 12:00:03 UTC
Using parameters in a xsl
Hi,
I have a radiobutton and want to give its "value"-parameter a dynamic value.
My radiobutton in the xsl looks like this:
<input type="radio" name="Project" value=""/>
I want to use a dynamic value for the "value"-parameter.
For example:
<input type="radio" name="Project" value=<xsp-request:get-parameter
name="ProjectName"/>/>
or
<input type="radio" name="Project" value=<xsl:value-of
select="projectName"/>/>
Using this syntax I get the message: "The file is not well-formed." or
messages like "Open quote is expected for attribute "value|".
Is there any possibility to set the "value"-parameter dynamically?
Regards,
Johannes
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
RE: Using parameters in a xsl
Posted by Robert Koberg <ro...@koberg.com>.
You can also write this more simply by using an 'attribute value template':
<input type="radio" name="Project" value="{projectName}"/>
best,
-Rob
> -----Original Message-----
> From: Christian Haul [mailto:haul@dvs1.informatik.tu-darmstadt.de]
> Sent: Friday, September 06, 2002 3:48 AM
> To: cocoon-users@xml.apache.org
> Subject: Re: Using parameters in a xsl
>
>
> On 06.Sep.2002 -- 12:00 PM, Johannes Wechsler wrote:
> >
> > <input type="radio" name="Project" value=<xsl:value-of
> > select="projectName"/>/>
>
> since Judith answered the first one, xsl has similar elements:
> <xsl:attribute name="value"><xsl:value-of
> select="projectName"/></xsl:attribute>
>
> Here projectName needs to be a nested tag to whatever is the current
> context node.
>
> You might want to have a look at the excellent tutorials and references
> at www.zvon.org
>
> Chris.
> --
> C h r i s t i a n H a u l
> haul@informatik.tu-darmstadt.de
> fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
>
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: Using parameters in a xsl
Posted by Christian Haul <ha...@dvs1.informatik.tu-darmstadt.de>.
On 06.Sep.2002 -- 12:00 PM, Johannes Wechsler wrote:
>
> <input type="radio" name="Project" value=<xsl:value-of
> select="projectName"/>/>
since Judith answered the first one, xsl has similar elements:
<xsl:attribute name="value"><xsl:value-of select="projectName"/></xsl:attribute>
Here projectName needs to be a nested tag to whatever is the current
context node.
You might want to have a look at the excellent tutorials and references
at www.zvon.org
Chris.
--
C h r i s t i a n H a u l
haul@informatik.tu-darmstadt.de
fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>