You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by "Mike Beckerle (Jira)" <xe...@xml.apache.org> on 2025/03/28 01:22:00 UTC

[jira] [Updated] (XERCESJ-1771) Save location (file, line, col) information on DOM Nodes

     [ 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-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org