xsl-list
[Top] [All Lists]

RE: [XSL] extracting a verse

2002-12-20 06:06:31

   <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



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