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:
<body>
If I change <body> to
<body onLoad="javascript:myJavaScriptFunction"> then the double-listbox
does not work--says option.length() is null or not an object.
thx!
Paul
?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!--+ Include styling stylesheets, one for the widgets, the other one
for the
| page. As 'forms-advanced-field-styling.xsl' is a specialization of
| 'forms-field-styling.xsl' the latter one is imported there. If
you don't
| want advanced styling of widgets, change it here!
| See xsl:include as composition and xsl:import as
extension/inheritance.
+-->
<xsl:include href="forms-page-styling.xsl"/>
<xsl:include href="forms-advanced-field-styling.xsl"/>
<xsl:template match="head">
<head>
<xsl:apply-templates/>
<xsl:apply-templates select="." mode="forms-page"/>
<xsl:apply-templates select="." mode="forms-field"/>
</head>
</xsl:template>
<xsl:template match="body">
<body>
<!--+ !!! If template with mode 'forms-page' adds text or elements
| template with mode 'forms-field' can no longer add
attributes!!!
+-->
<!--img border="0" src="images/Pagetitle.gif" width="550"
height="63"/-->
<xsl:apply-templates select="." mode="forms-page"/>
<xsl:apply-templates select="." mode="forms-field"/>
<xsl:apply-templates/>
<p align="center"><img border="0" src="images/footer.jpg"
width="880" height="57"/></p>
</body>
</xsl:template>
</xsl:stylesheet>
Robby Pelssers wrote:
Hi Paul,
Could you post the snippet that matches the normal body tag?
Is it something like
<xsl:template match="body">
...
</xsl:template>
That should also match the <body> tag with the onload attribute...
Cheers,
Robby
-----Original Message-----
From: Paul Joseph [mailto:[EMAIL PROTECTED]
Sent: dinsdag 4 november 2008 19:00
To: [email protected]
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 <body> and the double-listbox
works nicely on the many pages that have the <body> element.
However on one (just one) page I have a <body
onLoad="javascript:myJavaScriptFunction()> and not a plain old <body>
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]