This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: XML produce multiple "screen"




> Is it possible with XSL to say do xsl:apply-templates
> until you find an element called pb? If you find this
> element get back to a point of a template.

You have the wrong process model in mind. Don't do-until-go-back.
Instead, select the nodes you want to put in the div, then select the
next set of nodes.

<xsl:template match="xxx">
<div style="font-size:72pt">
<xsl:apply-templates 
  select="*[not(preceding-sibling::pb or self::pb)]"/>
</div>
<xsl:apply-templates 
  select="*[preceding-sibling::pb or self::pb]"/>
</xsl:template>

David


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]