Hi all -
I think that I weak grasp of the practical requirements, but I'm unable to
find a reference in the spec to clarify what's happening in the following:
I have a constructor:
return(
for $item in $file-list
let $item-less := replace($item, '^\d{1,}-', '')
(: returns "missing" supplemental files :)
where ($item-less[(not(. = ($files-titles, $excludes)))])
or ($item-less[(. = $files-titles)])
return(
<relatedItem>
<title>{$item-less}</title>
<mimeType>
{if ($item-less = $files-titles)
then ($content/files/file/name[. =
$item-less]/following-sibling::mimetype/text())
else
(fetch:content-type(concat(file:parent(document-uri($doc)),$item)))}
</mimeType>
<uri>{file:parent(document-uri($doc))}</uri>
</relatedItem>
)
)
and it works fine so long at the <relatedItem> is not namespaced. As soon
as the <relatedItem> is namespaced; e.g. <relatedItem xmlns="
http://bridger.net">, then I need to use the following XPath in the `then`
keyword:
($content/*:files/*:file/*:name[. =
$item-less]/following-sibling::*:mimetype/text())
The input documents (in the SSCCE, under sample-data/*/metadata.xml) are
not in a namespace.
Would someone mind providing some context for the "why" here? I've been
looking through Priscilla Walmsley's 2nd edition, and the specification,
but haven't been able to find an answer. I'm almost certainly looking for
the wrong thing(s).
Any help will be greatly appreciated! Thank you in advance.
Best,
Bridger
Because of issues with schema validation (can't properly use doc() in
the validate function - see
https://github.com/BaseXdb/basex/issues/1324), I'm not using BaseX to do
schema validation in my workflow.
But I needed it today to make some result comparisons with my own
implementation of XML Validator, and I noticed that using the beta
Xerces version which is documented in the wiki
<http://docs.basex.org/wiki/Validation_Module#XML_Schema_Validation> can
make it crash, so I thought I should report it here.
Other than that, I noticed one some XML files that it only reports fatal
errors, and hides any other non-fatal error. I think it has something to
do with the process
<https://github.com/BaseXdb/basex/blob/86a12cf0c75010b3058c18f81c4689bc511b7…>
method but I'm not sure.