|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Re: Evaluating last 3 or 4 characters of URL?
I missed that one. You don't need(and as you have discovered, can't use) the braces here. "select" is not an attribute, even thought it has the same form as an attribute, so an Attribute Value Template (AVT) (that's what the braces are) is inappropriate here. Lose them, and you should be OK. -- Charles Knell cknell@xxxxxxxxxx - email -----Original Message----- From: David Pratt <prattda@xxxxxxxxxxxxxxx> Sent: Sun, 11 May 2003 22:09:30 -0500 To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: Re: Evaluating last 3 or 4 characters of URL? Thanks Charles. I'll make this change. I am a bit tired and I did this as well as != instead of = . It's going to be a slow night. From xsltproc I am getting an XPath error at the first { in the expression which is the first hitch - so not even getting to evaluate the expression. XPath error Invalid expression
substring({@url}, -5, 5)='.html'On Sunday, May 11, 2003, at 10:43 PM, cknell@xxxxxxxxxx wrote: Look again carefully. The period before the file extension isn't being counted in the length of the substring you are testing. You will have to change "substring({@url}, -4, 4)" to substring({@url}, -5, 5)" if you want to test it against ".html". XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








