[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] uses for strSplit-to-Words2 was RE: Re: How to process
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|