I want to read the value “enquiry” from the attribute “name” in the xml snippet provided below using xslt. Can anyone help me with it? I am totally new to xslt.
Thanks in advance. 🙂
<?table name="enquiry"?>
<thead>
<row rowsep="1">
<entry colname="col1">
A more general approach would be to define a template like this:
Then you could call it to retrieve any pseudo-attribute you wanted, like this:
The benefit with this approach is that it accounts for the value being enclosed in either single or double quotes, and that you can reuse it if you need to extract multiple values.