Question
"Generated links" in savetext/usetext showing twice (and the second one is broken a bit)
Say what?
With Clay and Brandon's help, I am now successfully generating links from a
namespaced element, atidlm:resourcepair. However, if these links reside
inside of elements that get savetexted and usetexted, the link is output
twice.
For example in most contexts:
<atidlm:resourcepair ....=" tons=" of=" attributes=" live=" here=" ...="/>
Gets turned into:
<loc id="xxxx" role="table" type="link_with_title" title="titlegoeshere"/">
Which is subsequently formatted as a cross reference ... everything works
as designed. The link is live, highlighted properly, and contains all the
parts and pieces it should.
If, however, that <atidlm:resourcepair..../> lives inside of an element,
the content of which gets stored for later output, I end up with two links.
The first is "right" and the second one has the right text, is not entirely
live (only the ID/IDREF or numbering portion is live) or entirely
highlighted (same bits highlighted as live),
Any thoughts on what happens to links that are savetexted/usetexted?
--
Paul Nagai
With Clay and Brandon's help, I am now successfully generating links from a
namespaced element, atidlm:resourcepair. However, if these links reside
inside of elements that get savetexted and usetexted, the link is output
twice.
For example in most contexts:
<atidlm:resourcepair ....=" tons=" of=" attributes=" live=" here=" ...="/>
Gets turned into:
<loc id="xxxx" role="table" type="link_with_title" title="titlegoeshere"/">
Which is subsequently formatted as a cross reference ... everything works
as designed. The link is live, highlighted properly, and contains all the
parts and pieces it should.
If, however, that <atidlm:resourcepair..../> lives inside of an element,
the content of which gets stored for later output, I end up with two links.
The first is "right" and the second one has the right text, is not entirely
live (only the ID/IDREF or numbering portion is live) or entirely
highlighted (same bits highlighted as live),
Any thoughts on what happens to links that are savetexted/usetexted?
--
Paul Nagai

