This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: XSL Problem for expert
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: XSL Problem for expert
- From: "Pawson, David" <DPawson at rnib dot org dot uk>
- Date: Wed, 10 May 2000 09:39:09 +0100
- Reply-To: xsl-list at mulberrytech dot com
>Is it possible to do something like this?
>
><div type="chapter">
><p>Paragraph</p>
><pb/>
>
>And the template
>
><xsl:template match="div[@type='chapter']>
><div style="font-size:72pt">
><xsl:apply-templates/>
><!-- We don't close the div tag -->
></xsl:template>
>
><xsl:template match="pb">
></div>
><!-- We close the previous div tag -->
></xsl:template>
>
>Is there a way to do this?
Maybe, but a better approach might be to
match on a parent of the div element,
then process all necessary children, including div
and pb, to keep all the 'complete' elements
together, so that all tags are closed within
the same template.
HTH DaveP
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list