I'd like to be able to return the href="stylesheet.xsl" value from an XML file using XPath but I can't seem to figure out an expression that references attributes within ?-tags if it's even possible. Sample file:
<?xml-stylesheet type="text/xsl" href="https://foo.bar" ?>
<test>
<test2>
</test2>
</test>
The goal is to figure out which stylesheet a given XML file references, so in this case I'd like to return "https://foo.bar" as the result set. Any ideas?