Subject: RE: [xsl] Refactoring parsing code with XSLT 2.0 From: "Aron Bock" <aronbock@xxxxxxxxxxx> Date: Fri, 13 May 2005 03:11:06 +0000 |
From: Micah Dubinko <micah@xxxxxxxxxxxx> Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx 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.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Refactoring parsing code with, Micah Dubinko | Thread | Re: [xsl] Refactoring parsing code , M. David Peterson |
[xsl] Refactoring parsing code with, Micah Dubinko | Date | Re: [xsl] Refactoring parsing code , M. David Peterson |
Month |