[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

" problem...

Subject: " problem...
From: Michael Hoffmann <m-hoffmann@xxxxxx>
Date: Thu, 16 Nov 2000 11:04:48 +0100
quot
hi all...

i have a problem with javascript and &quot;
(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 &quot; 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(","&quot;",$current_entry,"&quot;",")")'/>"
and with concat("show(&quot;",,$current_entry,"&quot;)")'/>" 
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.