Subject: Re: [xsl] Convert XML to Excel using XSLT Question II. From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Wed, 21 Jun 2006 12:09:41 -0400 |
As you said, if the XSLT will go through each node and find the match, and apply-template when no "select =" would apply to the current node's children, then in my following example, if I comment out the <xsl:apply-template/>, I would assume other nodes other than the root would still get worked on the rules, because I have other code paragraphs/templates to match the other nodes. Then it doesn't seem to be necessary to put a <xsl:apply-template> here. But when I commented it out, all the rest nodes are ignored. Only <workbook ....> <worksheet></worksheet></workbook>. Can you please explain this?
<xsl:template match="foo"> <br/> </xsl:template>
<xsl:template match="foo"> <br/> <xsl:apply-templates/> </xsl:template>
1. Do it more than once 2. Apply templates to any nodes we like (not just the children)
Cheers, Wendell
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Convert XML to Excel usin, Karen Yang | Thread | Re: [xsl] Convert XML to Excel usin, Karen Yang |
RE: [xsl] XSLT arguments in PHP 5, Buchcik, Kasimier | Date | RE: [xsl] Grouping elements using X, Wendell Piez |
Month |