Subject: Re: [xsl] XPath expression "everything but..." ? From: Jeni Tennison <mail@xxxxxxxxxxxxxxxx> Date: Wed, 14 Feb 2001 16:30:37 +0000 |
Michael Beddow wrote: > Simplify your template to > <xsl:template match="chapter"> > <xsl:apply-templates/> > </xsl:template> > > Then provide a template matching on "title" (or maybe chapter/title, > depends on your document structure) > that does <h1><xsl:apply-templates/></h1> Be aware, though, that if the 'title' subelement isn't the first child of the 'chapter' element, then you won't get the h1 at the top of the chapter with this method. Cheers, Jeni --- Jeni Tennison http://www.jenitennison.com/ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] XPath expression "everyth, Michael Beddow | Thread | Re: [xsl] XSLT 1.1 comments, Tobias Reif |
Re: [xsl] Saxon Quirk, Jeni Tennison | Date | [xsl] how to get maximum, minimum v, Awasthi, Anand |
Month |