I am new to using XSLT. I want to display all of the information in an xml tag in my xsl formatted page. I have tried using local-name, name, etc and none give me the result I want.
Example:
<step bar="a" bee="localhost" Id="1" Rt="00:00:03" Name="hello">Pass</step>
I would like to be able to print out all of the information (bar="a"
, bee="localhost"
) etc as well as the value of <step>
Pass.
How can I do this with xsl?
Thank you!
If you want to return just the values, you could use the XPath
//text()|@*
.If you want the attribute/element names along with the values, you could use this stylesheet:
With your input, it will produce this output: