[Schematron] validate the default namespace of a instance document

Florent Georges lists at fgeorges.org
Tue Dec 1 16:49:38 EST 2009


G. Ken Holman wrote:

  Hi,

> in-scope-prefixes(/*)=''

  I am not sure from his description what's the exact intent of
the original poster, but if he wants to chack the namespace URI
of the default binding, maybe namespace-uri-for-prefix() could
even be more convenient:

    namespace-uri-for-prefix('', /*)

gives the xs:anyURI for the default binding if any, and the empty
sequence if not.

  Regards,

-- 
Florent Georges
http://www.fgeorges.org/























      




More information about the Schematron mailing list