22 |
|
word = *jargon/"word"; |
23 |
|
pronunciation = *jargon/"pronunciation"; |
24 |
|
grammar = *jargon/"grammar"; |
25 |
< |
definition = *jargon/"definition"; |
25 |
> |
definition = *jargon/"definition"/"p"; |
26 |
|
} |
27 |
|
|
28 |
|
void Jargon::display(ios::PrintWriter& pout, xml::TextWriter& xhtml) const |
33 |
|
xhtml.OpenElement("strong"); |
34 |
|
xhtml.OutputText(word + ":"); |
35 |
|
xhtml.CloseElement(); |
36 |
– |
xhtml.OutputText(" " + pronunciation); |
36 |
|
|
37 |
< |
if (!grammar.IsEmpty()) xhtml.OutputText(", " + grammar); |
37 |
> |
if (!pronunciation.IsEmpty()) xhtml.OutputText(" " + pronunciation); |
38 |
> |
if (!pronunciation.IsEmpty() && !grammar.IsEmpty()) xhtml.OutputText(","); |
39 |
> |
if (!grammar.IsEmpty()) xhtml.OutputText(" " + grammar); |
40 |
|
} |
41 |
|
|
42 |
|
for (xml::NodeSet::ConstIterator node(definition.Begin()); |
44 |
|
{ |
45 |
|
xml::ScopeElement p(xhtml, "p"); |
46 |
|
|
47 |
< |
xhtml.OutputText(**node/"p"); |
47 |
> |
xhtml.OutputText(**node); |
48 |
|
} |
49 |
|
} |
50 |
|
|