This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

uses for strSplit-to-Words2 was RE: Re: How to process a list ?



Dimitre wrote:
>Use strSplit-to-Words2.xsl from the FXSL xslt functional programming
>library.

I was just thinking that strSplit might enable something I've thought of
before but could never quite get my head around, which we might call
double-splitting, that is to say having a list of values that are split in
two(or more ways), example of css values should clarify meaning.
<div style="background-color:buttonface;border-bottom:black 2px
solid;border-right:black 1px solid; font-family:verdana;
font-size:largest;"></div>
I have sometimes come across scenarios where it would be useful to split the
values in @style into seperate elements for the property names and values,
have always had gut feeling that doing so in xslt would hurt my brain,
although I've written plenty of variations on classic string splitting
templates.
it seems that if one saved each split at the ; to a nodeset, then use
substring-before, substring-after on that nodeset at the : you could do
something like this, slight trepidation about processing power used,
although I don't think of this as online stuff, rather a datamining thing.
Am curious if others using the FXSL library find this a reasonable
suggestion.


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]