I believe I've found an answer to my question "where did my namespaced
attribute xsi:type='xs:hexBinary' go?"

I declared the two namespaces in my XQuery code:

declare namespace xs = "http://www.w3.org/2001/XMLSchema";;
declare namespace xsi = "http://www.w3.org/2001/XMLSchema-instance";;

And then I test for fields with this attribute and filter them out of my
import (for now) until I figure out how to undo the LZ77 compression.  I
don't need the file blobs to complete the process of de-normalizing this
SQL database.  This is the first time I've used the function
resolve-QName().   Interesting working with namespaces sometimes.

    let $record := element { $table-name } {
      $row/field[text() and
not(@xsi:type=fn:resolve-QName("xs:hexBinary",.))]/element
      { if(number(substring(@name,1,1))=number(substring(@name,1,1))) then
concat('_',@name) else @name }
      { text() }
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to