|
Subject: [xsl] Data extraction From: "Mailing Lists Mail daktapaal@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Mon, 17 Dec 2018 17:54:29 -0000 |
Hi all
I have a requirement where I need to write an xslt to extract a particular
node from source tree.
Someone wrote an xslt that looked like this.. pseudo code
Template Match node()|@*
Apply-template select node()|@*
Template match *:ElementToExtract
Copy of select .
I thought the developer was making a lot of traversing using the above
approach and he could have instead done
Template match "/"
Copy of select descendant::*:ElementToExtract
Would you agree ? I thought this was very obviously better and faster ...
Forgive my pseudo code.
Dr.pal
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] Efficient XPath 2.0 expre, Michael Kay mike@xxx | Thread | Re: [xsl] Data extraction, David Carlisle d.p.c |
| Re: [xsl] Efficient XPath 2.0 expre, Liam R. E. Quin liam | Date | Re: [xsl] Data extraction, David Carlisle d.p.c |
| Month |