[
https://issues.apache.org/jira/browse/XERCESJ-1765?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17865911#comment-17865911
]
Mukul Gandhi commented on XERCESJ-1765:
---------------------------------------
[~radu_coravu] Within Xerces-J's xs:assert implementation, the variable
fAssertDocument may not necessarily represent an entire XML input document.
The variable fAssertDocument may represent a subtree of an XML input document,
in which case using documentURI of an XML input document as base-uri of a
specific XML subtree (on which xs:assert works) doesn't seem ok to me. Having
an xml:base attribute on top most element of XML document object
fAssertDocument seems like an appropriate fix to this bug. If we look at the
code of this fix, xml:base attribute is added only to top most element of
xs:assert tree and not to every element of an xs:assert tree.
> xml schema 1.1 xs:assert instruction cannot use xpath2 fn:base-uri function
> correctly
> -------------------------------------------------------------------------------------
>
> Key: XERCESJ-1765
> URL: https://issues.apache.org/jira/browse/XERCESJ-1765
> Project: Xerces2-J
> Issue Type: Bug
> Components: XML Schema 1.1 Structures
> Reporter: Mukul Gandhi
> Assignee: Mukul Gandhi
> Priority: Major
>
> Yitzhak Khabinsky reported a bug to me offline, where with Xerces-J's XML
> Schema 1.1 implementation, we cannot use XPath 2.0 function fn:base-uri
> correctly within <assert> instruction.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]