Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 11th, 2007, 08:57 AM
Friend of Wrox
 
Join Date: Jul 2006
Posts: 430
Thanks: 28
Thanked 5 Times in 5 Posts
Send a message via Yahoo to bonekrusher
Default Substring-after collation

Hi,

the XSLT 2.0 spec for substring-after is:

substring-after(arg1,arg2,collation)

As collation is optional, however I am using a program which is requiring it.

For example:

substring-after('test12', '12') would return '12'

what woulf the collation be?

substring-after('test12', '12', $collation)?

Thanks,

 
Old May 11th, 2007, 09:16 AM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

substring-after('test12', '12') would return '12'

no, it would return ""


Saxon has support for collations as described in

http://www.saxonica.com/documentatio...collation.html

For other products, you'll have to consult the vendor.

Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference
 
Old May 11th, 2007, 09:31 AM
Friend of Wrox
 
Join Date: Jul 2006
Posts: 430
Thanks: 28
Thanked 5 Times in 5 Posts
Send a message via Yahoo to bonekrusher
Default

Thanks.. you are correct (typo)! Sorry about that.








Similar Threads
Thread Thread Starter Forum Replies Last Post
Need to change Collation sequence kscase SQL Server 2005 2 April 9th, 2007 10:20 AM
SQL Collation to Greek jmjyiannis SQL Server 2000 0 September 14th, 2005 11:59 AM
collation conflict vijayma SQL Server 2000 1 July 25th, 2005 09:50 PM
SQL7-SQL2K collation problems dhulse SQL Server 2000 2 July 6th, 2004 03:47 PM
Change Collation vincentc SQL Server 2000 2 October 2nd, 2003 04:14 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.