Sorry, mistake in that second example: <xsl:if test="marc:subfield[@code='f']!=''"> <unitdate type="inclusive" encodinganalog="245$f"> <xsl:attribute name="normal"> <xsl:value-of select="../marc:datafield[@tag=999"]/> </xsl:attribute> <!-- forgot this line! --> <xsl:value-of select="marc:subfield[@code='f']" /> </unitdate> </xsl:if> Michele +--+--+--+--+--+--+--+--+--+--+--+--+ High class, arrogant badness has the advantage of being well dressed, clean and socially connected. Peasant badness usually involves dirty teeth, nasty clothes, and living in squalor. +--+--+--+--+--+--+--+--+--+--+--+--+