saxon:get-pseudo-attribute()
saxon:get-pseudo-attribute($att as xs:string) ==> xs:string
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.
If the attribute value contains a sequence of characters in the form of an XML character reference, for example "
", this is parsed and converted into the corresponding character.
Although intended for parsing processing instructions, the function will actually parse the string value of the context item whatever it might be.