Micah, you could probably use a regular expression pattern with submatches
to extract the various parts. You'll want to verify this (the regex support
in 2.0, that is) , since I'm still getting my ... toes ... wet with *1.0*
Regards,
--A
From: Micah Dubinko <micah(_at_)dubinko(_dot_)info>
Reply-To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] Refactoring parsing code with XSLT 2.0
Date: Thu, 12 May 2005 19:31:18 -0700
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.
_________________________________________________________________
Don?t just search. Find. Check out the new MSN Search!
http://search.msn.click-url.com/go/onm00200636ave/direct/01/
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--