[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Refactoring parsing code with XSLT 2.0

Subject: Refactoring parsing code with XSLT 2.0
From: Micah Dubinko <micah@xxxxxxxxxxxx>
Date: Thu, 12 May 2005 19:31:18 -0700
 Refactoring parsing code with XSLT 2.0
I know how I would do this in XSLT 1.0, and it's not very pretty. Is there an elegant way in XPath/XSLT 2.0 to do this?

I have a variable with a string value like "3.48in" or "1pt" or "4" or "#123456" etc. Of the values that contain units, the first 2 of this particular list, I want to separate out the value from the units. I can include a list of possible unit values, say ("in", "cm", "pt", "em", "px") or whatever.

I've done XSLT 1.0 for a long time, and am just now getting into 2.0, so go easy on me. :) I'll post any interesting things I discover in my blog http://dubinko.info/blog

Thanks,

.micah

--
 Available for consulting. XForms, web forms, information overload.
 Micah Dubinko                           mailto:micah@xxxxxxxxxxxx
 Brain Attic, L.L.C.                        http://brainattic.info
 Yahoo IM: mdubinko                                +1 623 298 5172
 Learn XForms today: http://xformsinstitute.com

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.