-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Jeroen Reijn schrieb:
> 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.
It does.
Thanks
Felix
>
> Kind regards,
>
> Jeroen Reijn
>
> Felix Knecht wrote: 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
iD8DBQFFwKru2lZVCB08qHERAq35AKCPacirSfoxH5HhUgMh7OreRwTM+gCg4n9g
46T+lUlWmnqof2p50MzCQDc=
=/L+Q
-----END PGP SIGNATURE-----