in reply to Re: Extracting stylesheet links or url from HTML Page
in thread Extracting stylesheet links or url from HTML Page

The 'stylesheet' constraint could have been put straight into the XPath:
$doc->findnodes( q(//link[@rel='stylesheet']) )