From: Dannes W. <da...@ex...> - 2010-08-18 19:03:08
|
On 18 Aug 2010, at 20:49 , Casey Jordan wrote: > I am still not getting schema aware parsing though when I use the following: > > let $doc := doc($stem-global:path) > let $catalog := doc(stemcm:get-document-catalog($doc)) please read the function documentation carefully: http://exist-db.org/xquery/validation jaxp-parse Linkvalidation:jaxp-parse($instance as item(), $enable-grammar-cache as xs:boolean, $catalogs as item()*) node() Parse document in validating mode, all defaults are filled in according to the grammar (xsd). $instance The document referenced as xs:anyURI, a node (element or result of fn:doc()) or as a Java file object. $enable-grammar-cache Set the flag to true() to enable grammar caching. $catalogs The catalogs referenced as xs:anyURI's. Returns the parsed document. > > If this continues to not work, what would I have to do to integrate Saxon to do this? inside exist-db? that is proabably not possible in an good way. Just try the xs:anyURI Kind regards Dannes -- eXist-db Native XML Database - http://exist-db.org Join us on linked-in: http://www.linkedin.com/groups?gid=35624 |