L
Le TeXnicien de Surface
hello
I'm new to xslt and i'm trying to use it to go from a xml (tei4 compliant)
to a html
I've got <note></note> nested inside <p></p> and those <note> contain <p>
and the like. I would like to obtain the content of the <p> nested inside
the <note> but nothing if <p> is outside a <note>.
That is to transform
<p>Some text, I'm not interested in <note><p>This is my precious
note</p></note> and still uninterresting things.</p>
into just
<div class="note"><p>This is my precious note</p></div>
I would greatly appreciate any hint.
Thank you very much
I'm new to xslt and i'm trying to use it to go from a xml (tei4 compliant)
to a html
I've got <note></note> nested inside <p></p> and those <note> contain <p>
and the like. I would like to obtain the content of the <p> nested inside
the <note> but nothing if <p> is outside a <note>.
That is to transform
<p>Some text, I'm not interested in <note><p>This is my precious
note</p></note> and still uninterresting things.</p>
into just
<div class="note"><p>This is my precious note</p></div>
I would greatly appreciate any hint.
Thank you very much