Re: not sure how to modify xsl match
Joerg, In my template.xml file, if I replace onLoad="javascript:myJavaScriptFunction"> with then the double-listbox works perfectly. If I don't though, I get the display looks good, but when I attempt to do anything, an error message is displayed that options.length is null or not an object. Hope that helps! rgds Paul Joerg Heinicke wrote: What's the HTML result you get? I would have to check how onload is handled, but I'd expect this to be the problem. Cocoon Forms tries to set onload itself, I just don't know exactly how it handles existing onload values. Joerg On 04.11.2008 23:52, Paul Joseph wrote: Hi Robby, I *think* the template that is not matching is the one below. As you see, it calls forms-advanced-field-styling.xsl. The line on my xml file that seems to make the double-listbox work is this one: If I change to then the double-listbox does not work--says option.length() is null or not an object. thx! Paul ?xml version="1.0"?> xmlns:xsl="http://www.w3.org/1999/XSL/Transform";> width="880" height="57"/> Robby Pelssers wrote: Hi Paul, Could you post the snippet that matches the normal body tag? Is it something like ... That should also match the tag with the onload attribute... Cheers, Robby -Original Message- From: Paul Joseph [mailto:[EMAIL PROTECTED] Sent: dinsdag 4 november 2008 19:00 To: users@cocoon.apache.org Subject: not sure how to modify xsl match Hi there, I have an xsl newbie question I am using the double-listbox style of a multivalue widget. This uses the forms-advanced-field-styling.xsl stylesheet. This stylesheet appears to match against and the double-listbox works nicely on the many pages that have the element. However on one (just one) page I have a onLoad="javascript:myJavaScriptFunction()> and not a plain old My question is what is the best way to make the advanced field styling template match against this. thx! Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: not sure how to modify xsl match
What's the HTML result you get? I would have to check how onload is handled, but I'd expect this to be the problem. Cocoon Forms tries to set onload itself, I just don't know exactly how it handles existing onload values. Joerg On 04.11.2008 23:52, Paul Joseph wrote: Hi Robby, I *think* the template that is not matching is the one below. As you see, it calls forms-advanced-field-styling.xsl. The line on my xml file that seems to make the double-listbox work is this one: If I change to then the double-listbox does not work--says option.length() is null or not an object. thx! Paul ?xml version="1.0"?> xmlns:xsl="http://www.w3.org/1999/XSL/Transform";> width="880" height="57"/> Robby Pelssers wrote: Hi Paul, Could you post the snippet that matches the normal body tag? Is it something like ... That should also match the tag with the onload attribute... Cheers, Robby -Original Message- From: Paul Joseph [mailto:[EMAIL PROTECTED] Sent: dinsdag 4 november 2008 19:00 To: users@cocoon.apache.org Subject: not sure how to modify xsl match Hi there, I have an xsl newbie question I am using the double-listbox style of a multivalue widget. This uses the forms-advanced-field-styling.xsl stylesheet. This stylesheet appears to match against and the double-listbox works nicely on the many pages that have the element. However on one (just one) page I have a onLoad="javascript:myJavaScriptFunction()> and not a plain old My question is what is the best way to make the advanced field styling template match against this. thx! Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: not sure how to modify xsl match
Hi Robby, I *think* the template that is not matching is the one below. As you see, it calls forms-advanced-field-styling.xsl. The line on my xml file that seems to make the double-listbox work is this one: If I change to then the double-listbox does not work--says option.length() is null or not an object. thx! Paul ?xml version="1.0"?> xmlns:xsl="http://www.w3.org/1999/XSL/Transform";> width="880" height="57"/> Robby Pelssers wrote: Hi Paul, Could you post the snippet that matches the normal body tag? Is it something like ... That should also match the tag with the onload attribute... Cheers, Robby -Original Message- From: Paul Joseph [mailto:[EMAIL PROTECTED] Sent: dinsdag 4 november 2008 19:00 To: users@cocoon.apache.org Subject: not sure how to modify xsl match Hi there, I have an xsl newbie question I am using the double-listbox style of a multivalue widget. This uses the forms-advanced-field-styling.xsl stylesheet. This stylesheet appears to match against and the double-listbox works nicely on the many pages that have the element. However on one (just one) page I have a onLoad="javascript:myJavaScriptFunction()> and not a plain old My question is what is the best way to make the advanced field styling template match against this. thx! Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: not sure how to modify xsl match
Hi Paul, Could you post the snippet that matches the normal body tag? Is it something like ... That should also match the tag with the onload attribute... Cheers, Robby -Original Message- From: Paul Joseph [mailto:[EMAIL PROTECTED] Sent: dinsdag 4 november 2008 19:00 To: users@cocoon.apache.org Subject: not sure how to modify xsl match Hi there, I have an xsl newbie question I am using the double-listbox style of a multivalue widget. This uses the forms-advanced-field-styling.xsl stylesheet. This stylesheet appears to match against and the double-listbox works nicely on the many pages that have the element. However on one (just one) page I have a
not sure how to modify xsl match
Hi there, I have an xsl newbie question I am using the double-listbox style of a multivalue widget. This uses the forms-advanced-field-styling.xsl stylesheet. This stylesheet appears to match against and the double-listbox works nicely on the many pages that have the element. However on one (just one) page I have a onLoad="javascript:myJavaScriptFunction()> and not a plain old My question is what is the best way to make the advanced field styling template match against this. thx! Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]