<?xml version="1.0" encoding="iso-8859-1"?> <?xml-stylesheet href="../../make-menu.xsl" type="text/xsl"?><html> <head> <this-is section="extensions" page="functions" subpage="getpseudoattribute"/> <!-- Generated at 2011-12-09T20:47:22.916Z--><title>Saxonica: XSLT and XQuery Processing: saxon:get-pseudo-attribute()</title> <meta name="coverage" content="Worldwide"/> <meta name="copyright" content="Copyright Saxonica Ltd"/> <meta name="title" content="Saxonica: XSLT and XQuery Processing: saxon:get-pseudo-attribute()"/> <meta name="robots" content="noindex,nofollow"/> <link rel="stylesheet" href="../../saxondocs.css" type="text/css"/> </head> <body class="main"> <h1>saxon:get-pseudo-attribute()</h1> <p><b>saxon:get-pseudo-attribute($att as xs:string) ==> xs:string</b></p> <p>This function parses the contents of a processing instruction whose content follows the conventional attribute="value" structure (as defined for the <?xsl-stylesheet?> processing instruction). The context should be a processing instruction node; the function returns the value of the pseudo-attribute named in the first argument if it is present, or an empty string otherwise.</p> <p>If the attribute value contains a sequence of characters in the form of an XML character reference, for example "&#x0A;", this is parsed and converted into the corresponding character.</p> <p><i>Although intended for parsing processing instructions, the function will actually parse the string value of the context item whatever it might be.</i></p> <table width="100%"> <tr> <td> <p align="right"><a class="nav" href="hassamenodes.xml">Next</a></p> </td> </tr> </table> </body> </html>