Subject: Re: [xsl] Pure XML & Javascript on client-side From: Oleg Tkachenko <olegt@xxxxxxxxxxxxx> Date: Mon, 03 Sep 2001 17:55:16 +0200 |
Hi allYou probably mean <xsl:output method="xml"> ?
My web pages are "pure" xml (meaning no HTML or XHTML is used) which >is
styled on the client using CSS. To add interactivity, I use >Javascript. I transform a source XML file with XSLT before it's sent to the >browser. The problem is that, when I use <xsl:output method="text/xml">,
Example:Which xslt processor are you using ? This example evaluate to
<input type="checkbox" name="foo" onclick="function(getAttribute('name'))">
becomes
<input type="checkbox" name="foo" onclick="function(getAttribute('name'))">
But why ? It's well-formed xml. The only problem will arise if you try to use < and & in text, they must be escaped. Or use comments:
Similarly <script>var varname ="name" </script> is not possible.
<script> <xsl:comment> <![CDATA[if a <= "d" bla()]]> </xsl:comment> </script> -- Oleg Tkachenko Multiconn International
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Pure XML & Javascript on clie, Thomas Morf | Thread | RE: [xsl] Pure XML & Javascript on , timw |
Re: [xsl] Passing external values i, David Carlisle | Date | Re: [xsl] Knowing node name in orde, David Carlisle |
Month |