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

Re: [XSL] extracting a verse

Subject: Re: [XSL] extracting a verse
From: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx>
Date: Thu, 19 Dec 2002 11:28:57 +0000
Re:  [XSL] extracting a verse
Hi David,

>> Well, I think that your stylesheet demonstrates that the easiest
>> way to approach this problem is to use a serial, SAX-like process
>> rather than a tree-based process
>
> Yes, well it would be easier, except that after a long day at
> Euroweb 2002, it's easier to write XSLT in your sleep than to go
> into that alien world of imperative programing where variables keep
> changing all the time..

Sure, for XSLT geeks like yourself :) That's what I meant about
wanting to use XSLT for "other reasons".

I'm feeling particularly burned by this because I recently had to use
XSLT to process MIF to create HTML. MIF is designed to be used by a
serial processor and contains a lot of overlapping structures which
are a nightmare to disentangle using XSLT. My customer wanted to use
XSLT for "other reasons", but the result is not pretty.

> Isn't overlaying the linear verse/line structure with the nested
> element structure something that your son-of-XML language is
> supposed to be better at?

Yep, but it's only better at representing the structure, not (yet) at
manipulating it. LMNL (www.lmnl.org) syntax would represent the
overlapping structure as:

[quote}
[verse}No! penury, inertness and grimace,{verse]
[verse}In some strange sort, were the land's portion. [q}See{verse]
[verse}Or shut your eyes,{q] said Nature peevishly,{verse]
[verse}[q}It nothing skills: I cannot help my case:{verse]
[verse}'Tis the Last Judgment's fire must cure this place,{verse]
[verse}Calcine its clods and set my prisoners free.{q]{verse]
{quote]

And conceptually it would be seen as the string "No! penury, ...
prisoners free." with the tags indicating 'ranges' over the string.

Most of Wendell's examples are from the LMNL and JITT corpus, I
think.

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.