Clear-Bible / macula-greek

Syntax trees, morphology, and linguistic annotations for the Greek Bible
Other
23 stars 6 forks source link

@class='cl', @role='cl' #38

Open jonathanrobie opened 2 years ago

jonathanrobie commented 2 years ago

We currently have a top-level node in each sentence that has role="cl", as opposed to class="cl" in lower nodes. This is confusing to many.

<wg role="cl">
         <wg class="cl" rule="P2CL" cltype="Verbless" xml:id="400010010010082">

Some ways we could fix this:

  1. Delete the attribute from the topmost node, or
  2. Come up with a meaningful attribute name, or
  3. Delete the node itself

I favor #1, just deleting the attribute, which gives us:

   <sentence>
      <p>
         <milestone unit="verse" id="MAT 1:1">MAT 1:1</milestone> 
         Βίβλος γενέσεως Ἰησοῦ Χριστοῦ υἱοῦ Δαυεὶδ υἱοῦ Ἀβραάμ.
      </p>
      <wg>
         <wg class="cl" rule="P2CL" cltype="Verbless" xml:id="400010010010082">

In my sandbox, I did that with this XQuery:

for $node in //sentence/wg
return delete node $node/@role