|
Subject: [xsl] What is the most efficient XPath expression for retrieving the first child element? From: "Costello, Roger L. costello@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Sun, 12 May 2019 11:43:32 -0000 |
Hello XSLT experts!
I want to retrieve the first child element. The children consist of a
<Total_Size> element followed by many <String> elements (perhaps thousands of
<String> elements).
<COFF_String_Table>
<Total_Size>4443</Total_Size>
<String>.eh_frame</String>
<String>.debug_aranges</String>
<String>.debug_info</String>
...
</COFF_String_Table>
Question: What is the most efficient XPath for selecting the first child
element (the <Total_Size> element)? Assume the context node is the
<COFF_String_Table> element. Which of these is the most efficient XPath
expression:
(a) child::*[1]
(b) child::Total_Size
(c) something else (what?)
/Roger
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] How to convert a recursiv, Costello, Roger L. c | Thread | Re: [xsl] What is the most efficien, Michael Kay mike@xxx |
| Re: [xsl] How to convert a recursiv, Dimitre Novatchev dn | Date | Re: [xsl] What is the most efficien, Michael Kay mike@xxx |
| Month |