Subject: Re: [xsl] String ends with ?, ! or not From: Martin Honnen <Martin.Honnen@xxxxxx> Date: Tue, 29 Apr 2008 14:10:48 +0200 |
Is there is way, we can test whether a string ENDS-WITH a ?, !.
<articletitle>Dynamics of the trade balance and the terms of trade: The J‐curve?</articletitle>
I am trying to test, whether the <articletitle> string ends with ? (?) or not. Below is what I've tried to define in my stylesheet (note that I've tested Unicode value for ? as it gives error to define an external entity ?, which I've done by declaring a ENTITY declaration in XML as <!ENTITY quest "[#x0003F]" ><!--=question mark --> ).
<xsl:choose> <xsl:when test="./articletitle/contains(string(), '#x0003F')">
Martin Honnen http://JavaScript.FAQTs.com/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] String ends with ?, ! or not, Pankaj Chaturvedi | Thread | Re: [xsl] String ends with ?, ! or , David Carlisle |
[xsl] String ends with ?, ! or not, Pankaj Chaturvedi | Date | Re: [xsl] String ends with ?, ! or , David Carlisle |
Month |