Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Re: I want to have an empty textarea >Thread Next - Re: I want to have an empty textarea Re: I want to have an empty textareaTo: NULL Date: 2/9/2007 7:00:00 AM
roy axenov wrote:
> On Feb 8, 11:23 pm, Cecil Westerhof <d...@dummy.nl> wrote:
>> This is a piece of code from a xslt-file:
>>
>> <xsl:template match="SMS">
>> <xsl:for-each select='.'>
>
> As a side note, this is one of the silliest things I've
> ever seen and a textbook case of magical thinking in
> coding. It's not that I've never invoked foo to do bar
> without understanding either foo or bar--I did, but after
> being painfully bitten on my backside by that a few times
> I just said no.
I am quite new to xml and xslt. (It is my first try.) So how should I'll do
this?
Any pointers what documentation to use to learn working with xml and xslt? I
have 'XML in a Nutshell', but that is mere for reference instead of
learning I think.
>
>> <tr>
>> <td class = "inputDescription"><xsl:value-of
>> select='.' />:</td>
>> <td><textarea class = "content" id = "{@id}"
>> rows="5" cols="50">#</textarea></td>
>> </tr>
>> </xsl:for-each>
>> </xsl:template>
>>
>> When I remove the '#' to get an empty textare, the endtag
>> is collapsed into the begintag and all the HTML code
>> after the textarea is displayed into the textare. How can
>> I get an empty textarea?
>
> You do get an empty textarea element, it is just being
> serialized as XML. There are a few possible causes for
> this:
>
> - you might've forgotten to set <xsl:output method="html"
> ... /> in your transformation. If this is the case, the
> fix should be obvious.
This shall be it. I did not know about this. I need to go now, but when I
come back, I'll look it up.
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
