XInclude and content completion
Posted: Thu Dec 13, 2007 2:18 am
Hi there,
We're contemplating a large TEI project which would involve editors working on thousands of small files, each of which would contain ref elements linking to the xml:id attribute of other tags. Most of these other tags will be in a separate document, like this:
In doc 1:
<list>
<item xml:id="aaa">Item aaa</item>
<item xml:id="bbb">Item bbb</item>
</list>
In doc 2:
<ref target="#aaa">Link to aaa</ref>
We'd like to help the editors by enabling content completion for these values, so that when I type this in doc 2:
<ref target="
I see a drop-down list of the values in doc 1. I was hoping to accomplish this by using XInclude to include doc 1 in the header of doc 2, but it doesn't seem to work. Even if doc 1 is included in doc 2, the content completion engine still only shows me values from doc 2; it doesn't seem to parse through the XIncluded doc 1 to add its values to the list.
Is there any way I can make this work? Is it possible to have the content from doc 1 parsed by the content-completion engine without actually pulling the content into doc 2?
All help appreciated,
Martin
We're contemplating a large TEI project which would involve editors working on thousands of small files, each of which would contain ref elements linking to the xml:id attribute of other tags. Most of these other tags will be in a separate document, like this:
In doc 1:
<list>
<item xml:id="aaa">Item aaa</item>
<item xml:id="bbb">Item bbb</item>
</list>
In doc 2:
<ref target="#aaa">Link to aaa</ref>
We'd like to help the editors by enabling content completion for these values, so that when I type this in doc 2:
<ref target="
I see a drop-down list of the values in doc 1. I was hoping to accomplish this by using XInclude to include doc 1 in the header of doc 2, but it doesn't seem to work. Even if doc 1 is included in doc 2, the content completion engine still only shows me values from doc 2; it doesn't seem to parse through the XIncluded doc 1 to add its values to the list.
Is there any way I can make this work? Is it possible to have the content from doc 1 parsed by the content-completion engine without actually pulling the content into doc 2?
All help appreciated,
Martin