I want to add that I imported the schemas using an Information Flow and the
schema validation transform built into it.  Maybe there is another way?


On Fri, Oct 31, 2014 at 8:45 AM, Timothy W. Cook <[email protected]> wrote:

> ML 7.0-3
>
> I am learning how to import my schemas so that they are validated as well
> as being used to validate instances.
> Resources being used:
> https://docs.marklogic.com/guide/app-dev/loading_schemas  and
> http://developer.marklogic.com/learn/2007-04-schema
>
> I get this error on the base schema:
>
> *XSLT-VALIDATEBADTYPE1: (err:XTTE1510) () -- Invalid node type:
> @substitutionGroup lexical value "mlhim245:DvString mlhim245:DvAny" invalid
> for expected type #xs:QName at
> fn:doc("/13823000255628236460/14688546959689754718/http://www.mlhim.org/xmlns/mlhim2/2_4_5/mlhim245.xsd
> <http://www.mlhim.org/xmlns/mlhim2/2_4_5/mlhim245.xsd>")/xs:schema/xs:element[5]/@substitutionGroup
> using schema "XMLSchema.xsd"*
> In /actions/16483855469024013902.xslt on line 7
> In xsl:template ()
> In /actions/16483855469024013902.xslt on line 7
> In xdmp:xslt-invoke("/16483855469024013902.xslt",
> fn:doc("/13823000255628236460/14688546959689754718/
> http://www.mlhim.org/xmlns/mlhim2/2_4_5/mlhim245.xsd";), map:map(),
> <opt:options xmlns:opt="xdmp:eval"/>)
> In /MarkLogic/xslt/actions/execute-xslt-action.xqy on line 78 ,,,
>
> I don't see a line number but it is likely line 193.  Apparently ML
> doesn't support multiple substitution groups?
>
> In another schema I get an error:
>
> *XSLT-VALIDATEUNEXPECTED1: (err:XTTE1510) () -- Invalid node: Found
> xs:assert but expected ((xs:attribute|xs:attributeGroup)*,xs:anyAttribute?)
> at
> fn:doc("/8406988188571908737/17319502074240429889/http://www.ccdgen.com/ccdlib/Admin_CCD_245.xsd
> <http://www.ccdgen.com/ccdlib/Admin_CCD_245.xsd>")/xs:schema/xs:complexType[11]/xs:complexContent/xs:restriction/xs:assert
> using schema "XMLSchema.xsd"*
>
> So it doesn't support xs:assert either?
>
> Can these issues be resolved by changing the XMLSchema.xsd?
>
> I really need these two XML Schema 1.1 features.
>
> Thanks.
>
>
>
>
>
>
>
> ============================================
> Timothy Cook
> LinkedIn Profile:http://www.linkedin.com/in/timothywaynecook
> MLHIM http://www.mlhim.org
>
>


-- 

============================================
Timothy Cook
LinkedIn Profile:http://www.linkedin.com/in/timothywaynecook
MLHIM http://www.mlhim.org
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to