====================================== my formpage2html.xsl stylesheet: ====================================== <?xml version="1.0"?> <!DOCTYPE page [ <!ENTITY Uuml "Ü"> <!ENTITY Auml "Ä"> <!ENTITY Ouml "Ö"> <!ENTITY uuml "ü"> <!ENTITY auml "ä"> <!ENTITY ouml "ö"> <!ENTITY szlig "ß"> <!ENTITY nbsp " "> <!ENTITY lt " "> <!ENTITY gt " "> ]>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="page"> <html> <head> <META content="0" http-equiv="expires"/> <META content="nocache" http-equiv="pragma"/> <link rel="stylesheet" href="../vbi.css" type="text/css"/> <script language="JavaScript" src="../vbi.js" type="text/javascript"/> <title> <xsl:value-of select="title"/> </title> </head> <body class="external" onUnload="javascript:opener.location.reload()"> <xsl:apply-templates select="content"/> </body> </html> </xsl:template> <!-- ... (nothing relevant, other templates)... --> </xsl:stylesheet> ================================================ a typical xsp-page using this stylesheet: ================================================ <?xml version="1.0" encoding="ISO-8859-1"?> <xsp:page language="java" xmlns:xsp="http://apache.org/xsp" xmlns:xsp-formval="http://apache.org/xsp/form-validator/2.0" xmlns:xsp-request="http://apache.org/xsp/request/2.0" xmlns:session="http://apache.org/xsp/session/2.0" > <xsp:structure> <xsp:include>java.lang.*</xsp:include> </xsp:structure> <page> <content title="Form"> <!-- ...some content... --> </content> </page> </xsp:page> Only certain attributes (like onUnload) are filtered by cocoon (or may it be tomcat?) and only when I use Netscape 6.1 !! I just tested Mozilla 0.9.6 and it works!! ----- Original Message ----- From: "Matthew Langham" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, February 25, 2002 3:27 PM Subject: RE: Cocoon filters event-handler attributes from my body tags Uwe, >> I think Cocoon is filtering the attribute, but I don't know why. << well Cocoon does not filter attributes dependent on the browser - unless you tell it to using the selector and a different stylesheet can you post the XSL etc. so we can take a look? Matthew -- Open Source Group sunShine - Lighting up e:Business ================================================================= Matthew Langham, S&N AG, Klingenderstrasse 5, D-33100 Paderborn Tel:+49-5251-1581-30 [EMAIL PROTECTED] - http://www.s-und-n.de Weblogging at: http://www.need-a-cake.com ================================================================= -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, February 25, 2002 3:08 PM To: [EMAIL PROTECTED] Subject: Re: Cocoon filters event-handler attributes from my body tags Hello Matthew, yes, I am using the same stylesheet for all browsers, I am not using the selector "browser" from the sitemap, in fact I am using Cocoon default configuration in this respect. If I view the page source in Netscape the attribute is not there! Therefore I think Cocoon is filtering the attribute, but I don't know why. ----- Original Message ----- From: "Matthew Langham" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, February 25, 2002 2:57 PM Subject: RE: Cocoon filters event-handler attributes from my body tags Uwe, >> cocoon will filter the onUnload attribute when viewing the page with netscape 6. Opera and IE work fine. Why is that? << If you are using the same stylesheet for all browsers then Cocoon performs the same transformations and is not affected by the browser type. Or are you using different stylesheets depending on the USER-AGENT? If so then there is probably a mistake in the Netscape stylesheet. if you view the page source in Netscape is the attribute there? What about if you view ths source with IE? Matthew -- Open Source Group sunShine - Lighting up e:Business ================================================================= Matthew Langham, S&N AG, Klingenderstrasse 5, D-33100 Paderborn Tel:+49-5251-1581-30 [EMAIL PROTECTED] - http://www.s-und-n.de Weblogging at: http://www.need-a-cake.com ================================================================= -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, February 25, 2002 2:34 PM To: [EMAIL PROTECTED] Subject: Cocoon filters event-handler attributes from my body tags Hello Cocooners, when I use the following in my xsl stylesheet: <body onUnload="javascript:opener.location.reload()"> ... </body> cocoon will filter the onUnload attribute when viewing the page with netscape 6. Opera and IE work fine. Why is that? Thanks in advance, Uwe Stelzer --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faqs.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]> --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faqs.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]> --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faqs.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]> --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faqs.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]> --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faqs.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>