Hi David,
David Caruana wrote:
Marcel,
I've dug further and it was in fact an issue with the version of xalan
used in my environment - see
http://issues.apache.org/jira/browse/XALANJ-2091 for details.
So, backing out to the implementation provided by the Java runtime has
fixed the namespace attribute issue.
However, I'm still having issues with the default/empty namespace, which
I now export. It's not picked up as an attribute by the Java RT DOM
implementation, therefore the namespace count assertion is still failing
(it's out by 1 as the default namespace is not within the DOM). As a
side note, the document and system xml examples in the spec do not
contain the default namespace declaration.
I've just seen that too. IMO those examples are not correct. The section
about namespaces states that there are certain namespaces that are built
in, which includes the empty namespace.
Which Transformer implementation are you testing with?
When I run the tests it is using the Xalan implementation that is
shipped with JDK 1.4.
regards
marcel
Thanks,
David
New export file...
<?xml version="1.0" encoding="UTF-8"?>
<testdata xmlns:alf="http://www.alfresco.org"
xmlns:d="http://www.alfresco.org/model/dictionary/1.0"
xmlns:view="http://www.alfresco.org/view/repository/1.0"
xmlns:nt="http://www.jcp.org/jcr/nt/1.0"
xmlns:act="http://www.alfresco.org/model/action/1.0"
xmlns:app="http://www.alfresco.org/model/application/1.0"
xmlns:usr="http://www.alfresco.org/model/user/1.0"
xmlns:ver="http://www.alfresco.org/model/versionstore/1.0"
xmlns:cm="http://www.alfresco.org/model/content/1.0"
xmlns:sv="http://www.jcp.org/jcr/sv/1.0"
xmlns:mix="http://www.jcp.org/jcr/mix/1.0"
xmlns:jcrtest="http://www.alfresco.org/test/jcr/1.0"
xmlns:jcr="http://www.jcp.org/jcr/1.0"
xmlns:sys="http://www.alfresco.org/model/system/1.0"
xmlns:rule="http://www.alfresco.org/model/rule/1.0"
xmlns=""
jcr:primaryType="jcrtest:testtype"
jcr:mixinTypes="mix:referenceable"
jcr:uuid="0e806548-30cf-11da-b21b-79fcc4285795"
jcrtest:booleanProp="true"
jcrtest:doubleProp="3.141592653589793"
jcrtest:dateProp="2005-09-16T19:20:05.034+01:00"
jcrtest:longProp="90834953485278298"
jcrtest:nameProp="jcrtest:test"
jcrtest:stringProp="2005-09-16T20:20:05.555+01:00"
</testdata>