Hi,
I'm trying to reproduce this line of HTML code in XSL, and I'm reaching
the limits of my inadequate knowledge.
[span onClick="document.all.menu1.style.display = 'block'"
onClickOut="document.all.menu1.style.display = 'block'"
style="text-decoration:underline; color:green"]
What I'm struggling to do is to work out how is how to do: 'block' and
get the commas surrounding the word block.
So far I have...
[span]
[xsl:attribute name="onClick"]
[xsl:value-of
select="concat('document.all.',@name,'.style.display','=','block')"/]
[/xsl:attribute]
[xsl:attribute name="onClickOut"]
[xsl:value-of
select="concat('document.all.',@name,'.style.display','=','block')"/]
[/xsl:attribute]
[xsl:attribute name="style"]
[xsl:value-of
select="'text-decoration:underline; color:green'"/]
[/xsl:attribute]
[/span]
This outputs:
[span onClick="document.all.menu1.style.display=block"
onClickOut="document.all.menu1.style.display=block"
style="text-decoration:underline; color:green"]
I can't just add commas around block because the syntax won't allow me.
If I add in the commas to the resulting HTML it works like a dream, but
that kinds of defeats the purpose of XML having to go back and change
the resulting code :)
Sorry if this is not enough of an explanation,
Nicola
(By they way I had to change < to [ because otherwise the email
bounces!)
Nicola Harlow
Technical Author
The Program Management Group plc
tel: +44 (0) 1937 547 171
direct: +44 (0) 1937 547 165
fax: +44 (0) 1937 547 154
mail: nicola(_dot_)harlow(_at_)pm-group(_dot_)com
web: http://www.pm-group.com
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--