I know this is a way off the topic but could somebody please
tell me how to extract the name of a stylesheet from the xml document.
You have to parse the contents of the processing instruction using
substring-before and substring-after.
Saxon has an extension, get-pseudo-attribute() to do it. (Which must
mean I once needed to do a similar thing myself).
Michael Kay
Software AG
home: Michael(_dot_)H(_dot_)Kay(_at_)ntlworld(_dot_)com
work: Michael(_dot_)Kay(_at_)softwareag(_dot_)com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list