-----Original Message-----
From: Hong Gia Dinh
Sent: 17 December 2002 11:26
To: '[EMAIL PROTECTED]'
Subject: RE: Retrieve value problema bit mention!! i also set for the <input . . . align="left"> but the value also jump to far end middle of the input field!!! why???-----Original Message-----
From: Hong Gia Dinh
Sent: 17 December 2002 11:05
To: '[EMAIL PROTECTED]'
Subject: RE: Retrieve value problemOK sorry i found out!!! ;( the both {name_value} and <xsl:attribute name="value"> . . .i can display it now!!! just because .... it does not show in the first location of the input field so i cant see it!!!!??!!! but it displays at the far end of the input field!!!!!how to fix it???-----Original Message-----
From: Hong Gia Dinh
Sent: 17 December 2002 10:52
To: [EMAIL PROTECTED]
Subject: RE: Retrieve value problemi tried with the way u show me but it doesn't display the Jonh Smith in the input field!!??!!
my snippet is :<input type="text" name="name">
<xsl:attribute name="value">
<xsl:value-of select="name_value"/> {nothing display!!!)
</xsl:attribute>
</input>
<xsl:value-of select="name_value"/> {here - display John Smith!!! - just the line below the input tag!!!!what happens???
-----Original Message-----
From: Joerg Heinicke [mailto:[EMAIL PROTECTED]]
Sent: 17 December 2002 09:55
To: [EMAIL PROTECTED]
Subject: Re: Retrieve value problem
Hello Gia Dinh,
it's an XSL problem, so maybe the Mulberry XSL list is a more
appropriate forum for such questions:
http://www.mulberrytech.com/xsl/xsl-list/.I can only guess what your problem is, because you show to less code.
value="{name_value}" is ok in general. If <xsl:value-of
select="name_value"/> works on another place, it shell be a matching
problem. I guess you don't use both code snippets in the same template
or for-each loop.
To use <xsl:value-of select="name_value"/> in attributes you can write
it in the following way:<input type="text">
<xsl:attribute name="value">
<xsl:value-of select="name_value"/>
</xsl:attribute>
</input>But this is only a long form of the Attribtue Value Template you already
use. And if the one does not work, the other one shell also not work.For more help, you need to show more of your code.
Regards,
Joerg
Hong Gia Dinh wrote:
> Hi all
>
> I got the problem like this:
>
> i have a xsp file having the element : <name_value>John Smith</name_value>
> and a xsl file having a form with the input something like this?
>
> <form . . .>
> <input type="text" name="name" value="xxx">
>
> now i want to put the value of the element <name_value> into the value
> of the input!!
> how???
>
> i tried value="{name_value}"
> but it doesn't display anything in the form!
>
> i use <xsl:value-of select="name_value"/> in the outside of the input i
> can print out Jonh Smith
>
> but i cant put the tag <xsl:value-of select="name_value"/> into the
> value="<.>" due to '<' and '>' problem! so do you know how to deal with
> this??
>
> Thanks very mmuch in your help
> GD
---------------------------------------------------------------------
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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>
Title: RE: Retrieve value problem
OK !!
now i found the solution!!!
i put
value={normalize-space(name_value)} and then it's ok !! but anyway i am
wondering why appearing space in front of the name_value
so!!!!
- Retrieve value problem Hong Gia Dinh
- Re: Retrieve value problem Joerg Heinicke
- RE: Retrieve value problem Hong Gia Dinh
- RE: Retrieve value problem Hong Gia Dinh
- Re: Retrieve value problem Ugo Cei
- RE: Retrieve value problem Hong Gia Dinh
- Hong Gia Dinh