Hi,
I have been looking into XXE for some time now, and read through your
available documents.  One important thing that I have been trying to
accomplish but were unsucessful goes as follow:

first my xml file looks like:

<section section-number="14">
  <header>First header</header>
  <paragraph>...</paragraph>
  ...

  <header>Second header</header>
  <paragraph>...</paragraph>
  ...
</section>

I need to add to each <header> a section number that follow the number
according to the section-number attribute of the root element (<section
section-number="14">).  That number is unfortunately not consistent (don't
ask me why; long story) and thus the header should look like in xxe:

14.1  First header
    ...

14.2  Second header
      ...

So I was wondering if I can use the CSS counter() to do such a thing.  

Therefore the question is:
Is it possible for the css to refer to an attribute of the root document (or
any ancestor for that matter)?  If so, how?

Thank you,
Jocelyn Raymond

Reply via email to