This repository was archived by the owner on Aug 26, 2020. It is now read-only.

Description
For a property say "hasCustomerID" that is an internal ref in model2, version translator produces a syntax error on deploying the artifact.
Model1:
"hasProductID":{
"datatype":"integer"
}
Model2:
"hasCustomerID": {
"$ref": "#/definitions/Customer"
}
Code in version translator that produces syntax err:
let $hasCustomerID := $source-node/hasCustomerID ! es:init-instance(?, 'Customer')
=>es:with-namespace('http://marklogic.com/customer','cust')(.)
expected:
let $hasCustomerID := $source-node/hasCustomerID ! $extract-reference-Customer(.)