[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

"group-starting-with" and "analyze-string" alternative

Subject: "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)
 "group-starting-with" and "analyze-string" alternative
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.