[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: "bryan" <bry@xxxxxxxxxx>
Date: Fri, 20 Dec 2002 14:06:31 +0100
get a verse
>    <text>
>       <div>
>          <chapter id="BCV-GEN-1" to="BCV-GEN-1-END" value="1"/>
>          <head>The Story of#Creation</head>
>          <p>
>             <verse id="BCV-GEN-1.1" to="BCV-GEN-1.1-END" value="1"/>In
the
>beginning, when God created the universe,
>             <verseEnd id="BCV-GEN-1.1-END" from="BCV-GEN-1.1"/>
>             <verse id="BCV-GEN-1.2" to="BCV-GEN-1.2-END"
value="2"/>the
>earth was formless and desolate. The raging ocean that covered
everything
>was engulfed in total darkness, and the ......         </p>
>
>Starting with this piece of Scripture I would like to extract just the
>contents of  verse 1. I have the start of the verse and verseEnd
>identified. Is there an easy way of doing the extraction? I know I can
>change it all to a verse centric model and do the extraction but in
this
>paragraph centric model is it possible?


Ohh, I started working on it thinking you wanted to mingle it. Anyway,
let me ask a question that has to do with your structure there, do you
mean you want to get verse 1 with the structure shown above, or verse 1
with something like this structure:

          <chapter id="BCV-GEN-1" to="BCV-GEN-1-END" value="1"/>
<head>The Story of#Creation</head>
          <p>
             <verse id="BCV-GEN-1.1" to="BCV-GEN-1.1-END" value="1"/>In
the
beginning, when God created the universe,
             <verseEnd id="BCV-GEN-1.1-END" from="BCV-GEN-1.1"/>
<verse id="BCV-GEN-1.2" to="BCV-GEN-1.2-END" value="2"/>the
earth was formless and desolate. The raging ocean that covered
everything
was engulfed in total darkness, and the ......                 <verseEnd
id="BCV-GEN-1.2-END" from="BCV-GEN-1.2"/>     </p>          <chapterEnd
id="BCV-GEN-1-END" from="BCV-GEN-1"/>

?

In doing this do you want to be able to get a verse out by id, or are
you thinking you just want to get the first verse? I'm also assuming
that you want to get verse 1 'inside' of chapter 1 right?



 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.