Hi! This is a pretty basic question, so I hope you won't mind me
posting it here.
I have an XML doc which contains certain marked terms and has notes
attached next to them, like this:
<p>some text <term>some phrase</term><note><term>basic form of the
phrase><gloss>explanation of the phrase</gloss>some text.</p>
In other words, <p> element can have two children: <term> marking the
phrase as it appears in the text and being part of the text itslef, and
<note> which attaches a note explaining the term in some detail.
I am having problems designing an xsl template which will output:
<p>some text<term>some phrase</term>some text</p>
i.e. which will include only one of the two possible children
elements... Everything I do outputs either both <term> and <note> OR
neither one of them... What's the trick?
Many thanks in advance,
Toma
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list