[ 
https://issues.apache.org/jira/browse/XERCESJ-1771?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mike Beckerle updated XERCESJ-1771:
-----------------------------------
    Description: 
We need a feature where the file/line/col information is attached to every DOM 
node.

Like the DOMAddLines sample, but as a built in always-available feature you can 
turn on. 

This will then allow Apache ws-schema to provide access to the file/line/col 
for every XML Schema component. 

That in turn enables our Apache Daffodil DFDL schema compiler to use ws-schema 
internally to parse the DFDL Schema (which is an enhanced XML Schema), and be 
able to issue precise diagnostic messages. 

Without this enhancement to Xerces J, ws-schema can't give us line-info (since 
it uses DOM trees), and so, Apache Daffodil can't use well, any of this nice 
XML/XSD infrastructure. 

This looks fairly easy to do, so started a PR on it. 
[https://github.com/apache/xerces-j/pull/7,] 

  was:
We need a feature where the file/line/col information is attached to every DOM 
node.

This will then allow Apache ws-schema to provide access to the file/line/col 
for every XML Schema component. 

That in turn enables our Apache Daffodil DFDL schema compiler to use ws-schema 
internally to parse the DFDL Schema (which is an enhanced XML Schema), and be 
able to issue precise diagnostic messages. 

Without this enhancement to Xerces J, ws-schema can't give us line-info (since 
it uses DOM trees), and so, Apache Daffodil can't use well, any of this nice 
XML/XSD infrastructure. 

This looks fairly easy to do (I started a PR on it. 
[https://github.com/apache/xerces-j/pull/7,] but I'm stuck on getting it to 
build and run my Junit tests.)


> Save location (file, line, col) information on DOM Nodes
> --------------------------------------------------------
>
>                 Key: XERCESJ-1771
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1771
>             Project: Xerces2-J
>          Issue Type: Improvement
>          Components: DOM (Level 3 Core)
>    Affects Versions: 2.12.2
>            Reporter: Mike Beckerle
>            Priority: Major
>
> We need a feature where the file/line/col information is attached to every 
> DOM node.
> Like the DOMAddLines sample, but as a built in always-available feature you 
> can turn on. 
> This will then allow Apache ws-schema to provide access to the file/line/col 
> for every XML Schema component. 
> That in turn enables our Apache Daffodil DFDL schema compiler to use 
> ws-schema internally to parse the DFDL Schema (which is an enhanced XML 
> Schema), and be able to issue precise diagnostic messages. 
> Without this enhancement to Xerces J, ws-schema can't give us line-info 
> (since it uses DOM trees), and so, Apache Daffodil can't use well, any of 
> this nice XML/XSD infrastructure. 
> This looks fairly easy to do, so started a PR on it. 
> [https://github.com/apache/xerces-j/pull/7,] 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: j-dev-unsubscr...@xerces.apache.org
For additional commands, e-mail: j-dev-h...@xerces.apache.org

Reply via email to