1<?xml version="1.0" ?> 2<xsl:stylesheet version="1.0" 3 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > 4 5<xsl:template match="p"> 6<xsl:value-of select="preceding-sibling::p[not(pPr/pStyle = $pStyle)][1]/preceding-sibling::p/pPr/pStyle"/> 7</xsl:template> 8 9</xsl:stylesheet> 10