|
Subject: " problem... From: Michael Hoffmann <m-hoffmann@xxxxxx> Date: Thu, 16 Nov 2000 11:04:48 +0100 |
hi all...
i have a problem with javascript and "
(yes... i know this is the xsl list.. but i have this problem within my
xsl-file)
i want to pass the result of a <xsl-for each> to a new window
generated with javascript...
in this new window there just should be the text of the selected node.
what i have is :
<xsl:element name="input">
<xsl:attribute name="type">button</xsl:attribute>
<xsl:attribute name="value">show</xsl:attribute>
<xsl:attribute name="onclick"><xsl:value-of
select='concat("show(",$current_entry,")")'/></xsl:attribute>
</xsl:element>
which outputs the following string : show(text_from_current_entry)
what i need is : show("text_from_current_entry")
^^^ ^^^
and then i have a javascript which opens the new window (which is no
problem.. if i pass
sth like <xsl:attribute name="onclick">show("hello
world")</xsl:attribute>
everything is fine... the window opens and i see the text in it...)
i have no idea how to insert the " into this string...
whenever i try to insert it it gets parsed and i get the errormessage
"another " is expected"
(i tried to insert it with
concat("show(",""",$current_entry,""",")")'/>"
and with concat("show("",,$current_entry,"")")'/>"
and so on... but for sur ei get the processing erros from cocoon...)
can anyone help me out ? (maybe there is a chance to pass the parameter
in a different way ?)
thx
michael
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: include text file, Eric van der Vlist | Thread | RE: include text file, DPawson |
| Re: Transforming XML to XML, David Carlisle | Date | Re: Catching head, Jeni Tennison |
| Month |