RE: Wrapping consecutive similar elements inside a new
Stuart, Danny, Thank you both for your replies. I ended up using Stuart's code, because it worked for me immediately. Danny, nothing against your code, it's just me being obtuse, I know: I believe you meant the "doc" template as a placeholder only, for me to replace, but I didn't "get" how to do this. Stuart, I also added [starts-with(text(),'-')] to the span specs, because there are some other paras that begin with spans, but that don't begin with the list item tell-tale "-". There are probably better ways to do this, too, huh? Thanks again, Graham Hannington 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