Re: [xsl] String ends with ?, ! or not

Subject: Re: [xsl] String ends with ?, ! or not
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 29 Apr 2008 13:22:05 +0100
> <!ENTITY quest            "[#x0003F]" ><!--=question mark --> ).

why do that, rather than just using a ? in the source?
If you did want to define & quest; to be a question mark you'd need a &
in that replacement text, as you have it & quest; is just the 7
characters #x0003F and has no relation to a question mark at all.


As has been said, xpath2 has ends-with, in xpath1 use

test="substring($x,string-length($x))='?'"

David

________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. 
________________________________________________________________________

Current Thread