This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: call-template and javascript
- To: xsl-list at mulberrytech dot com
- Subject: Re: call-template and javascript
- From: Jiri Jirat <Jiri dot Jirat at idoox dot com>
- Date: Tue, 21 Nov 2000 14:02:48 +0100
- Organization: IDOOX
- References: <01C053BA.DAA17250.Jakub.Maly@unicorn.cz>
- Reply-To: xsl-list at mulberrytech dot com
Hello Jakub,
try:
<xsl:text disable-output-escaping="yes">
<javascript>
your code here
</javascript>
</xsl:text>
You must escape <, && etc.
Best regards
Jirka
Jakub Malư wrote:
>
> I know that comments are ignored, so I try to pecify problen again. I want
> to insert javascript into translated page, but compiler has been trying to
> translate javascript as XSL, so there are errors. One way is to use
> external javascript (using <javascript src="javascript.js"></javascript>),
> other way is to replace all characters (&, <, >, ....) with ....(I don't
> know how it's called :-(, but I hope that you understand me).
>
> I want something like this.
>
> <javascript>
> Text, which will be ignored for XSL compiler, but will be in translated
> page.
> </javascript>
>
> Tanks for help,
>
> regards Jakub
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
--
<name firstName="Jirka" surname="Jirat"/>
<mail> jiratj@idoox.com </mail>
<support> http://www.zvon.org </support>
<zvonMailingList> http://www.zvon.org/index.php?nav_id=4
</zvonMailingList>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list