[prev in list] [next in list] [prev in thread] [next in thread]
List: xmlbeans-dev
Subject: [jira] [Commented] (XMLBEANS-100) Support of DOM Level 3
From: "Robert H. Pollack (JIRA)" <xmlbeans-dev () xml ! apache ! org>
Date: 2011-07-15 23:32:00
Message-ID: 1929588238.19212.1310772720705.JavaMail.tomcat () hel ! zones ! apache ! org
[Download RAW message or body]
[ https://issues.apache.org/jira/browse/XMLBEANS-100?page=com.atlassian.jira.plugi \
n.system.issuetabpanels:comment-tabpanel&focusedCommentId=13066302#comment-13066302 ] \
Robert H. Pollack commented on XMLBEANS-100:
--------------------------------------------
For those following this issue, here is an update. First, the problem still exists in \
XMLBeans version 2.5.0. Second, I have confirmed that the import workaround described \
above still works and that XMLBeans can indeed parse the post-transform document.
It occurs to me that the above discussion may not make it clear what the problem \
actually is. Here is what's going on:
XMLBeans has its own implementation of DOM, which is DOM level 2. But the \
implementation of XSLT that is built into JDK 1.6 (Saxon) assumes that the DOM \
implementation is level 3. This means that XSLT cannot operate on DOM nodes supplied \
by XMLBeans; but it can use DOM nodes created by the JDK DOM implementation.
The good news is that the two implementations understand each other. So the JDK \
implementation can create a level 3 DOM tree by importing an XMLBeans DOM tree; and \
XMLBeans can parse a DOM tree created by the JDK.
Interestingly, the Saxon implementation calls level 3 methods only if it thinks they \
are available; it contains workarounds for level 2 DOM implementations. But informing \
Saxon that the DOM is level 2 does not seem to be easy. Another interesting problem \
is that the XMLBeans implementation actually contains all the level 3 methods, but \
they are stubbed out and throw unconditional exceptions. So any technique for \
determining the DOM level automatically by checking for the presence of these methods \
will not work.
> Support of DOM Level 3
> ----------------------
>
> Key: XMLBEANS-100
> URL: https://issues.apache.org/jira/browse/XMLBEANS-100
> Project: XMLBeans
> Issue Type: New Feature
> Components: DOM
> Affects Versions: Version 2
> Reporter: Walter Dorninger
> Assignee: Jacob Danner
> Priority: Minor
> Fix For: TBD
>
>
> Support of DOM Level 3 would be a powerful feature.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic