>
> If I subsequently pass "valid" to, for example, a
> transformer, should I expect tests like the following
>
> <xsl:when test="@href instance of xs:anyURI">
> <xsl:text>href is an xs:anyURI</xsl:text>
> </xsl:when>
>
> to work (assuming @href on the context element is defined as
> xsd:anyURI in the schema, of course)?
Well, certainly (data(@href) instance of xs:anyURI) should work, as should
(@href instance of attribute(*, xs:anyURI))! The "instance of" operator does
not atomize its operand; a node is never an instance of an atomic type
Michael Kay
http://www.saxonica.com/
|