cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeroen Reijn <j.re...@hippo.nl>
Subject Re: Script tags in forms-advanced-field-styling.xsl
Date Wed, 31 Jan 2007 14:20:47 GMT
Hi Felix,

yes this is a known issue, but it depends on your serializer. I guess 
you are using the XML Serializer. Try using the html or the 
XHTMLSerializer from the serializers block. You browser stumbles upon 
the closed tag created by the XML Serializer.

That should fix your problem next to adding a space in the script tag.

Kind regards,

Jeroen Reijn

Felix Knecht wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hi all
> 
> I have a very strange behaviour with the
> forms-advanced-field-styling.xsl (cocoon-2.2):
> 
>   <xsl:template match="head" mode="forms-field">
>     <xsl:apply-imports/>
>     <script
> src="{$resources-uri}/forms/mattkruse-lib/AnchorPosition.js"
> type="text/javascript"/>
>     <script src="{$resources-uri}/forms/mattkruse-lib/PopupWindow.js"
> type="text/javascript"/>
>     <script
> src="{$resources-uri}/forms/mattkruse-lib/OptionTransfer.js"
> type="text/javascript"/>
>     <script src="{$resources-uri}/forms/mattkruse-lib/selectbox.js"
> type="text/javascript"/>
>     <xsl:apply-templates select="." mode="forms-htmlarea"/>
>   </xsl:template>
> 
> does not works because the script tags are not recognized correctly by
> the browser (??) and the scripts are not loaded wheras
> 
>   <xsl:template match="head" mode="forms-field">
>     <xsl:apply-imports />
>     <script
> src="{$resources-uri}/forms/mattkruse-lib/AnchorPosition.js"
> type="text/javascript">var dummy=0;</script>
>     <script src="{$resources-uri}/forms/mattkruse-lib/PopupWindow.js"
> type="text/javascript">var dummy=0;</script>
>     <script
> src="{$resources-uri}/forms/mattkruse-lib/OptionTransfer.js"
> type="text/javascript">var dummy=0;</script>
>     <script src="{$resources-uri}/forms/mattkruse-lib/selectbox.js"
> type="text/javascript">var dummy=0;</script>
>     <xsl:apply-templates select="." mode="forms-htmlarea" />
>   </xsl:template>
> 
> 
> is working. It seems, that shortended <script ... /> is not working
> correctly. Even adding a comment in between like <script ...><!--
> emtpy comment --></script> doesn't works.
> 
> Is this a wellknown issue or do I miss something?
> 
> Regards
> Felix
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.1 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
> 
> iD8DBQFFwKQ52lZVCB08qHERAmJQAKCuMx9SaLgXdD/vXM5notloWTLr4QCg6D59
> 2e+5qQkQcrIXlRyAkIR2thw=
> =+tuY
> -----END PGP SIGNATURE-----
> 

Mime
View raw message