<xsl:if test="//@version eq '-//W3C//DTD XHTML 1.1//EN'"
you don't want // there which may cause the system to search the entire
document to arbitrary depth looking for a version attribute of that
form. You just want /xhtml:html/@version to look at the document
element's attribute.
It's a bit dangerous to rely on @version though as an XML parser may or may
not fetch the external dtd and default these attributes.
David
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--