Subject: RE: [xsl] XSLT Processing Model Questions From: "Dietrich Ayala" <dietrich@xxxxxxxxx> Date: Mon, 15 Apr 2002 08:57:32 -0700 |
thanks. i'd read section 5 over and over, and still had profound misunderstanding of how this process worked. i think i've got a handle on it now. thanks, dietrich > -----Original Message----- > From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of David > Carlisle > Sent: Monday, April 15, 2002 12:44 AM > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Subject: Re: [xsl] XSLT Processing Model Questions > > > > > First: I'm viewing the source-tree serialization given in section > > D.1. This is what is leading me to believe this. > > The template > > <xsl:template match="doc/title"> > <h1> > <xsl:apply-templates/> > </h1> > </xsl:template> > > Matches the title element: > > <title>Document Title</title> > > and produces a <h1> element in the output, the apply-templates there > matches the children of the title element, which is the text node > Document Title > and produces an identical text node as the child of h1. > > Why do you think that the apply-templates is generating siblings of h1? > > The next sibling is the <h2>chapter title</h2> > which comes about as the > apply-templates > in the template for doc causes templates to be applied to the <chapter? > element after the title element. There is no template supplied for > chapter so the default template will be used, which applies templates to > the children of that element, so then th etemplate matching > > > <xsl:template match="chapter/title"> > <h2> > <xsl:apply-templates/> > </h2> > </xsl:template> > > fires and produces the h2. > > David > > _____________________________________________________________________ > This message has been checked for all known viruses by Star Internet > delivered through the MessageLabs Virus Scanning Service. For further > information visit http://www.star.net.uk/stats.asp or alternatively call > Star Internet for details on the Virus Scanning Service. > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] XSLT Processing Model Que, David Carlisle | Thread | RE: [xsl] XSLT Processing Model Que, Greg Faron |
RE: [xsl] XSLT Processing Model Que, Greg Faron | Date | [xsl] xrefs (count,preceding,keys,, Andrew Welch |
Month |