Subject: RE: [xsl] template matching From: Peter Flynn <pflynn@xxxxxx> Date: Thu, 05 Feb 2004 15:19:40 +0000 |
On Wed, 2004-02-04 at 14:51, Varley, Roger wrote: > > > > <xsl:template match="//note"> > > <li> > > <xsl:apply-templates/> > > </li> > > </xsl:template> > > > > Oh rats! Just when I thought I'd got my head around XSLT. Gin and tonic required? > Would you explain why this works, in particular why it prints only > the values of the <note> elements Because that's what it says it will do. The template will match every note in the document, at any depth or location, and for each one, output a LI element containing the value of the note. > and no blank lines for the <sub1> <sub2 .... elements Because there's nothing there to do that. Where did you want space to appear? ///Peter XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] template matching, Varley, Roger | Thread | RE: [xsl] template matching, Varley, Roger |
[xsl] Fwd: [XSLT2.0] Binding of a l, Dimitre Novatchev | Date | Re: [xsl] Get all the node as text, Peter Flynn |
Month |