Subject: [xsl] "group-starting-with" and "analyze-string" alternative for XSLT 1.0? From: Steven Kaminski <shkaminski@xxxxxxxxx> Date: Tue, 28 Aug 2007 11:32:06 -0700 (PDT) |
Thanks, Abel. > There are only three XSLT 2.0 processors around. You can try Saxon 8.9, > Gestalt or Altova's xslt parser. If you cannot make Mindjet use another > processor, you can use msxml:script to include javascript (or jscript, > no need to care about ms extensions, any msxml:script is un-portable > anyway) that does the tricks you want: regular expressions. > Using XSLT 2.0 is not an option--so using the msxml:script is a good idea. I had considered that. > group-starting-with is, imo, better addressed with a tree-walking > algorithm, not Muenchian grouping, even though you can use either. Tree > walking is quite easy to implement and there are many sources in both > the faq, the internet, and some books (I believe it is discussed in the > XSLT Cookbook). Tree-walking may also be the answer. It really shouldn't be that tricky. I'll look at the sources you mention. > It sounds to me that you are doing something you shouldn't be doing at > all: having HTML as text (in your cdata sections of your source). If you > can make the source change to serve you xml/html blocks instead it will > be much easier. I have no control over the source file. This is the standard format of the application from which I'm getting the file: Libronix Digital Library System. Can't change it. > that was altogether about 20k of non-indented source+xslt+output. I'm > afraid that there aren't many hobbyists around here that will > voluntarily delve into a bunch of unknown code. It is usually far better > to show a cut-down example of what you need, nicely formatted, so that > we can quickly grasp what your problem is. Sorry. this was my first post here. I'll try to trim it next time. Thanks for sorting through it enough to give some good advice. > Cheers, > -- Abel Braaksma _____________________________________________________________________________ _______ Sick sense of humor? Visit Yahoo! TV's Comedy with an Edge to see what's on, when. http://tv.yahoo.com/collections/222
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] "group-starting-with" and, Abel Braaksma | Thread | [xsl] XPath references using exsl:n, Matt Poff |
Re: [xsl] best way, Abel Braaksma | Date | [xsl] xsl:choose and xsl:when, oryann9 |
Month |