xsl-list
[Top] [All Lists]

[xsl] "group-starting-with" and "analyze-string" alternative for XSLT 1.0?

2007-08-28 11:33:08
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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>