← Prev in month ← Prev in thread
Next in thread → Next in month →

help needed for recipe for selecting elements by attributes

From
Mike Haberman <>
Date
2003-09-26T13:51:06+00:00
ID
Thread
help needed for recipe for selecting elements by attributes
Hello all,

let's say I have this:
  <para > </para>
  <para > </para>
  <para role="one"> </para>
  <para > </para>
  <para role="one"> </para>
  <para role="one"> </para>

  now when I am processing a <para> I want to see if it is the first
  para with role == "one"

  (let* (p (select-elements (children (parent (current-node))) "para"))

      now I need to test if current-node is equal to the first 
      node in list p that has it's role set to "one"


  can anyone help me?

  thanks!

  mike
← Prev in month ← Prev in thread
Next in thread → Next in month →