xsl-list
[Top] [All Lists]

Re: Concat question from a non-developer

2005-07-07 02:55:33

I can't just add commas around block because the syntax won't allow me.

You mean ' not ,
To get a ' into a Xpath string you need to delimy it with " so "'block'"
then to get that into teh "-delimited xml attribute you need to quote
teh " so
"'block'"



But it looks like you are making this much more complicated than it need be

I think you just want

<xsl:template match="something">
 <span onClick="document(_dot_)all(_dot_){(_at_)name}(_dot_)style(_dot_)display 
= 'block'" 
       
onClickOut="document(_dot_)all(_dot_){(_at_)name}(_dot_)style(_dot_)display = 
'block'"
       style="text-decoration:underline; color:green">
  <xsl:apply-templates/>
 </span>
</xsl:template>> 


(By they way I had to change < to [ because otherwise the email
 bounces!)
that must be a problem with your mailer, we post xml syntax here every
 day.

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

--~------------------------------------------------------------------
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>
--~--



<Prev in Thread] Current Thread [Next in Thread>