Loading TOC...

sc:schema-from-path

sc:schema-from-path(
   $namespace as xs:string,
   [$location as xs:string]
) as schema-root()?

Summary

Get a schema object as a value based on its namespace and schema location hint.

Parameters
namespace The target namespace of the schema.
location The location of the schema.

Example

sc:schema-from-path("http://www.w3.org/1999/xhtml");
  => 
  [16, 1.1, http://www.w3.org/1999/xhtml at xhtml1.1.xsd global ok]

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.