Subject: Re: [xsl] XSLT Processing Model Questions From: Robert Koberg <rob@xxxxxxxxxx> Date: Sun, 14 Apr 2002 16:10:52 -0800 |
A question about <xsl:apply-templates/>:because you are specifying a direct path. theoretically, you should have one title, so if you match that you take it out of the mix. then you can go on to match the rest of your stuff according to the rules you set.
In the first template in the example in section D.1 of the spec, the results of the subsequent template are appended to the result tree as children of the final result tree node created in this first template. ie, the results of template 2 are appended to the result tree as children of template 1:
<snip>
<body> <xsl:apply-templates/> </body>
in template 2, which has a match value of "doc/title", the results of the template are appended to the result tree as following-siblings of the source-tree-context-node *even though* the use of apply-templates in each template is the exact same.
<snip>
<h1> <xsl:apply-templates/> </hi>
</snip>
why does the behaviour of how template results are appended to the result tree differ between the 2 templates?
best, -Rob
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] XSLT Processing Model Que, Dietrich Ayala | Thread | RE: [xsl] XSLT Processing Model Que, Dietrich Ayala |
Re: [xsl] Combining stylesheets for, Robert Koberg | Date | [xsl] non-existing file in document, Kunal H. Parikh |
Month |