perl-ish way to deal with footnotes in an XML document
by Birgit Kellner other posts by this author
Jul 19 2007 8:18AM messages near this date
view in the new Beta List Site
RE: A whitespace issue in XML::LibXML
|
RE: perl-ish way to deal with footnotes in an XML document
& XSLT Hello,
please forgive me if this is a somewhat uninformed question.
I have an XML document that is to be transformed both into HTML and
LaTeX Code. This is a critical edition which contains several layers of
critical notes. The notes need anchors in the text, of course, either as
classical footnote anchors or as LaTeX commands wrapped around a string
of text that serves as an anchor (which LaTeX then keys to the line
number in the printed document).
I'd prefer to do all the necessary transformations with perl; I'm using
XML::LibXML. The point I'm stuck at the moment is to handle footnote
anchors.
Consider this chunk of code:
<seg> This is a segment of text. It goes on and on. <note><span
type="lemma"> Here</span>
<app>
<lem> Here</lem>
<rdg wit="Ms-A"> Here</rdg>
<rdg wit="Ms-B"> There</rdg>
</app>
</note>
there is a note, but after the note the text continues.</seg>
How can I get whatever code I wish to create for the note to be inserted
*exactly* at the start of the <note> -Element, that is, at a specified
position in the text content of its parent? I couldn't find anything in
the XML::LibXML documentation, but maybe I just didn't know the right
terminology.
Thanks in advance for any help,
Birgit Kellner
_______________________________________________
Perl-XML mailing list
Perl-XML@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
Birgit Kellner
Mark - BLS CTR Thomas
Birgit Kellner
Mark - BLS CTR Thomas
A. Pagaltzis
Birgit Kellner
Joshua Santelli
Petr Pajas
|