Subject: Re: [xsl] Re: Newbie question--applying templates, selecting para graphs - SOLVED!! From: Grant-Kathryn@xxxxxxxxxxxxxxxxx Date: Thu, 30 May 2002 17:19:41 -0700 |
Joerg and Dave, Thanks for the url--that helped. Dave, I also appreciate your explanation about xsl-copy. To answer your question--I didn't use "node() | @*" because I didn't know better :) I borrowed the code I used ("*|@*|text()|comment()" from an old post. I'm still a newbie, so thanks for providing a more concise solution. Kathryn Date: Fri, 24 May 2002 20:31:43 +0200 From: Joerg Heinicke <joerg.heinicke@xxxxxx> Subject: Re: [xsl] Re: Newbie question--applying templates, selecting paragraphs - SOLVED!! What about http://www.w3.org/TR/xslt#conflict ? Does it help? Joerg Grant-Kathryn@xxxxxxxxxxxxxxxxx wrote: > > May I ask one more question that will hopefully help me understand more > about XSL? I understand now why the xhtml namespace is necessary. But I > don't understand why adding the second template worked. If the first one > says "copy everything," the second one must somehow override or modify the > first. But syntactically, I don't see how that is accomplished. ------------------------------ Date: Fri, 24 May 2002 11:42:30 -0700 From: "David N Bertoni/Cambridge/IBM" <david_n_bertoni@xxxxxxxxxx> Subject: Re: [xsl] Re: Newbie question--applying templates, selecting paragraphs - S OLVED!! xsl:copy does not make a deep copy, it only copies the current node. The xsl:apply-templates element with the xsl:copy recursively processes any descendants. The second template is more specific, and therefore, has a higher default priority, so it is chosen rather than the first one, if it matches the current node. For more info, see: http://www.w3.org/TR/xslt#conflict Is there some reason you're not just using the expression "node() | @*", instead of "*|@*|text()|comment()"? Are you excluding processing instructions on purpose? Dave XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Re:Problem w/ call-templa, Joerg Heinicke | Thread | [xsl] Can you pass a parameter from, Grant-Kathryn |
Re: [xsl] Whitespace seperated valu, Joerg Heinicke | Date | [xsl] Can you pass a parameter from, Grant-Kathryn |
Month |