How does MLS support xs:ID and xs:IDREF?

For example, I work with a document type containing several elements that are 
defined in the schema to have attributes 'foo' and 'fooref' which are of type 
xs:ID and xs:IDREF, respectively.

I want to do something like:

let $element-id = $doc//some-element/@fooref

let $element-of-interest := $doc/id($element-id)

but MLS isn't finding my $element-of-interest. 

Do I have to validate the documents against the schema? Or is it maybe enough 
to just upload the schema to the schema database?

The document schema is not currently in my schema database.

thanks
/mario






      
_______________________________________________
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to