Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Search Forums
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Showing results 1 to 5 of 5
Search took 0.01 seconds.
Search: Posts Made By: baseliner
Forum: BOOK: XSLT 2.0 and XPath 2.0 Programmer's Reference, 4th Edition ISBN: 978-0-470-19274-0 August 25th, 2011, 07:42 PM
Replies: 2
Views: 1,138
Posted By mhkay
First convert the date to ISO format YYYY-MM-DD,...

First convert the date to ISO format YYYY-MM-DD, using regex functions or simply substring-before/after. Then you can convert to xs:date(), and then you have a wide range of functions and operators...
Forum: BOOK: XSLT 2.0 and XPath 2.0 Programmer's Reference, 4th Edition ISBN: 978-0-470-19274-0 December 4th, 2009, 06:22 AM
Replies: 5
Views: 1,652
Posted By mhkay
My own approach would be: instead of converting...

My own approach would be: instead of converting the date to a number 20100104, convert it first to the string "2010-01-04" and then to an xs:date. While converting to a number is fine for determining...
Forum: BOOK: XSLT 2.0 and XPath 2.0 Programmer's Reference, 4th Edition ISBN: 978-0-470-19274-0 December 4th, 2009, 06:03 AM
Replies: 5
Views: 1,652
Posted By samjudson
The conversion to a number only happens when you...

The conversion to a number only happens when you call the '-' operator. The '>' comparison operator will work quite happily on strings, were for example '2' > '15' is true.

To ensure the returned...
Forum: XSLT July 18th, 2009, 01:26 PM
Replies: 5
Views: 1,079
Posted By mhkay
I think the important point to note is that the...

I think the important point to note is that the key() function always searches the tree that contains the context node. If you want to search a different document, then in 2.0 you can provide its...
Forum: XSLT July 18th, 2009, 06:25 AM
Replies: 5
Views: 1,079
Posted By Martin Honnen
Keys are created for each document. Inside the...

Keys are created for each document. Inside the for-each select="$Var1/rule" the key function looks for nodes in the temporary document the rule elements belong to. If that is not what you want then...
Showing results 1 to 5 of 5

 


All times are GMT -4. The time now is 02:44 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.