|
Subject: Re: [xsl] Filtering on a tokenized list From: "Martin Honnen martin.honnen@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Thu, 23 Feb 2017 13:01:09 -0000 |
I have an attribute value that I want to convert to a sequence of decimals:
@colwidth="0.439in 1.845in"
I am using tokenize to drop the measurement units before I convert each member to decimal:
tokenize($widths,'[^\.\d]')
This works, except I get a empty string as the last item in the list. I saw in Michael's book that I can filter out the empty member with a predicate:
tokenize($widths,'[^\.\d]')[.]
I can't quite understand how the predicate [.] works. Is it like saying "non-empty strings"? Would it be equivalent to
[not(.="")]
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| [xsl] Filtering on a tokenized list, Rick Quatro rick@xxx | Thread | Re: [xsl] Filtering on a tokenized , Mukul Gandhi gandhi. |
| [xsl] Filtering on a tokenized list, Rick Quatro rick@xxx | Date | Re: [xsl] Filtering on a tokenized , Mukul Gandhi gandhi. |
| Month |