Subject: Re: [xsl] [XSL] extracting a verse From: "Michael H. Semcheski" <mhs-list@xxxxxxxxx> Date: Wed, 18 Dec 2002 14:26:37 -0500 |
One approach is to go "bottom up". This is what Patrick Durusau and Matthew O'Donnell, who (AFAIK) have done the most work in public with this problem, call a "bottom-up virtual hierarchy" (BUVH). One pass flattens *everything* into milestones; the second interpolates the hierarchy you want. (Actually this is a simplification of what they did, though I don't see why it wouldn't work.) This is doable, but quite hairy if you want to preserve any of the original hierarchy, and so processor intensive that you don't want to be trying it on large texts. More lately, their efforts have shifted to an approach they call JITTs ("Just-in-Time Trees"), in which the verse starts and ends are promoted from atomic milestones into real element starts and ends. (A pre-XML-parse process then extracts the hierarchy you want.) While charmingly enunciated, and (I believe) ultimately on the right track, this approach suffers (IMHO) because it tries to repeal the First Law of XML Markup: "Thou Shalt be Cleanly Nested", thereby risking unnecessary Uncertainty and Doubt, if not actually Fear.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] [XSL] extracting a verse, Wendell Piez | Thread | Re: [xsl] [XSL] extracting a verse, Wendell Piez |
Re: Announcement netiquette (was RE, Mulberry Technologie | Date | Re: [xsl] [XSL] extracting a verse, Wendell Piez |
Month |