This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[docbook-apps] 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







To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]