On Thu, May 17, 2007 at 02:58:32AM -0700, Srinivasan.S
wrote:
> I'm a newbee to xsl. I have to do the following in my
.xsl file.
>
> <xsl:if test="statement_type = 'Myself &
bod went to a movie'">
> <call template>
> </xsl:if>
Use & or & to escape an & sign
(whichever you prefer)
You are asking if the contents of a subelement called
statement_type is exactly equal to the given string, with
no extra spaces. I don't know if this is what you want.
I'm also assuming your <call template> is actually
<xsl:apply-templates />
or
<xsl:call-template name="touch-my-sock" />
or something.
Liam
--
Liam Quin, W3C XML Activity Lead, http://www.w3.org/Peop
le/Quin/
http://www.holoweb.net/
~liam/ * http://www.fromoldbooks.
org/
Mandriva Linux: http://www.mandriva.co
m/linux/
_______________________________________________
Perl-XML mailing list
Perl-XML listserv.ActiveState.com
To unsubscribe: http:/
/listserv.ActiveState.com/mailman/mysubs
|