<!DOCTYPE news [
<!ELEMENT news (event*)>
<!ELEMENT event (date,header?,description,who?)>
+ <!ELEMENT date (#PCDATA)>
+ <!ELEMENT header (#PCDATA)>
+ <!ELEMENT description (#PCDATA)>
+ <!ELEMENT who EMPTY>
+ <!ATTLIST who
+ file CDATA #REQUIRED>
]>
<news>
Site moved into CVS. XSLT stylesheets are used to generate
HTML pages from XML sources.
</description>
- <who>Claudio Sacerdoti Coen</who>
+ <who file="bologna/sacerdoti"/>
</event>
<event>
<description>
First Web pages created.
</description>
- <who>Luca Padovani</who>
+ <who file="bologna/padovani"/>
</event>
</news>
<xsl:if test="who">
<br/><br/>
<div class="right">
- <em><div class="small"><xsl:value-of select="who"/></div></em>
+ <xsl:variable name="who" select="document(concat('../xml/people/',who/@file,'.xml'))/person"/>
+ <em>
+ <div class="small">
+ <xsl:value-of select="$who/name"/>
+ <xsl:text> </xsl:text>
+ <xsl:value-of select="$who/surname"/>
+ </div>
+ </em>
</div>
</xsl:if>
</dd>