'ghost' attributes showing up in XML source
Posted: Fri May 14, 2010 2:52 am
I've run into a problem using 11.2. I'm using it to work with EAD encoded documents though I'm not making use of the framework. I was running a transform to strip out empty text nodes when I noticed that there were attributes present in the results that weren't present in the source XML. The source document validates under all the engines provided (I've tried this out on both a Windows and Mac OS X install, both current) and validates externally. I even examined the source documents in a hex editor and couldn't find anything amiss. Yet when I look at the source in Oxygen, the attributes not present in the source show up in the attributes pane (though they are grayed out). I can find them via XPath, though they don't show any location. They even show up in the tree view! Strangely enough, if I delete the values in either the tree view or the attribute pane, the empty attributes appear in the source and the document fails to validate.
The same problem with the same attributes (era and calendar on date and unitdate, both set to their default values, linktype on title (very strange in itself) elements) happens with any EAD document I load in Oxygen. More strangely, I had the same issue crop up when running the transform externally via Kernow (which has Saxon 9.1.0.3 I think). I set the explain flag to check out the transform and it also found the same attributes in the source as it parsed it out. I replaced the EAD.dtd I was using, downloading new copies from the LOC. But that didn't make a difference. I would think it might be some Java issue but for the fact that the windows install is running the VM included in the download while on the mac it's running on the latest and greatest, so to speak. The version of Oxygen on windows was an upgrade from 10.3, which didn't have this issue as far as I noticed. And that it happened there only now brought it to light here on the Mac. I'm really at a loss to understand what's going on here and how this information can be showing up in the source though it isn't present in its byte code.
Any help would be appreciated. Thanks in advance. And thanks for Oxygen. I've been using it since about 2006 and really appreciate the its diverse and deep capabilities.
The same problem with the same attributes (era and calendar on date and unitdate, both set to their default values, linktype on title (very strange in itself) elements) happens with any EAD document I load in Oxygen. More strangely, I had the same issue crop up when running the transform externally via Kernow (which has Saxon 9.1.0.3 I think). I set the explain flag to check out the transform and it also found the same attributes in the source as it parsed it out. I replaced the EAD.dtd I was using, downloading new copies from the LOC. But that didn't make a difference. I would think it might be some Java issue but for the fact that the windows install is running the VM included in the download while on the mac it's running on the latest and greatest, so to speak. The version of Oxygen on windows was an upgrade from 10.3, which didn't have this issue as far as I noticed. And that it happened there only now brought it to light here on the Mac. I'm really at a loss to understand what's going on here and how this information can be showing up in the source though it isn't present in its byte code.
Any help would be appreciated. Thanks in advance. And thanks for Oxygen. I've been using it since about 2006 and really appreciate the its diverse and deep capabilities.