1<xsl:stylesheet 2 version="1.0" 3 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 4 xmlns:fo="http://www.w3.org/1999/XSL/Format"> 5 6<xsl:template match="procedure"> 7 <fo:block> 8 <xsl:value-of select="ancestor-or-self::*[@security][1]/@security"/> 9 </fo:block> 10 <xsl:apply-templates/> 11</xsl:template> 12</xsl:stylesheet> 13