[ http://issues.apache.org/jira/browse/XERCESJ-879?page=all ]
Michael Glavassevich resolved XERCESJ-879:
------------------------------------------
Assign To: (was: Xerces-J Developers Mailing List)
Resolution: Fixed
Fix Version: 2.6.1
As per my previous note sax.Writer has been capable of emitting namespace
declarations since Xerces 2.6.1.
> sax.Writer does not emit namespace declarations for PSVI dump
> -------------------------------------------------------------
>
> Key: XERCESJ-879
> URL: http://issues.apache.org/jira/browse/XERCESJ-879
> Project: Xerces2-J
> Type: Bug
> Components: Serialization
> Versions: 2.6.0
> Environment: Operating System: Linux
> Platform: PC
> Reporter: C. M. Sperberg-McQueen
> Fix For: 2.6.1
>
> When called with the command line
> java -cp ... sax.Writer -v -s -f -p xni.parser.PSVIParser test.xml
> on a test file (details of the test file don't matter),
> XercesJ produces an XML representation of the PSVI. This
> is a very useful representation of the PSVI and I'm grateful
> for it. But it reads in part (I omit nothing salient):
> <document>
> <children>
> <element>
> ...
> <attributes>
> <attribute>
> <namespaceName>http://www.w3.org/2001/XMLSchema-instance</namespaceName>
> <localName>schemaLocation</localName>
> ...
> <references xsi:nil="true"></references>
> <psv:validationAttempted>full</psv:validationAttempted>
> ...
> </attribute>
> </attributes>
> ...
> I.e. it uses the namespace prefixes xsi and psv (to denote the
> XML Schema instance namespace and the namespace for the PSVI
> reflection in 'alternating normal form' defined by Henry Thompson
> and Richard Tobin), and the default namespace is that associated
> with the XML Infoset. All without any namespace declarations.
> I get results which match my expectations if I insert the
> following three namespace declarations on the 'document'
> element start-tag:
> xmlns='http://www.w3.org/2001/05/XMLInfoset'
> xmlns:psv='http://www.w3.org/2001/05/PSVInfosetExtension'
> xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
> Is there a reason that sax.Writer cannot or does not emit
> these?
> Thanks.
> -C. M. Sperberg-McQueen
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]