[prev in list] [next in list] [prev in thread] [next in thread]
List: xmlbeans-dev
Subject: [jira] Commented: (XMLBEANS-187) sax spec requires local name
From: "Jacob Danner (JIRA)" <xmlbeans-dev () xml ! apache ! org>
Date: 2007-04-26 22:52:15
Message-ID: 28509250.1177627935546.JavaMail.jira () brutus
[Download RAW message or body]
[ https://issues.apache.org/jira/browse/XMLBEANS-187?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12492145 \
]
Jacob Danner commented on XMLBEANS-187:
---------------------------------------
This is what java doc for org.xml.sax.Attributes says:
http://java.sun.com/javase/6/docs/api/index.html
> > >
The list will not contain attributes that were declared #IMPLIED but not
specified in the start tag. It will also not contain attributes used as
Namespace declarations (xmlns*) unless the
http://xml.org/sax/features/namespace-prefixes feature is set to true
(it is false by default). Because SAX2 conforms to the original
"Namespaces in XML" recommendation, it normally does not give namespace
declaration attributes a namespace URI.
Some SAX2 parsers may support using an optional feature flag
(http://xml.org/sax/features/xmlns-uris) to request that those
attributes be given URIs, conforming to a later backwards-incompatible
revision of that recommendation. (The attribute's "local name" will be
the prefix, or "xmlns" when defining a default element namespace.) For
portability, handler code should always resolve that conflict, rather
than requiring parsers that can change the setting of that feature flag.
If the namespace-prefixes feature (see above) is false, access by
qualified name may not be available; if the
http://xml.org/sax/features/namespaces feature is false, access by
Namespace-qualified names may not be available.
<<<
> sax spec requires local name
> ----------------------------
>
> Key: XMLBEANS-187
> URL: https://issues.apache.org/jira/browse/XMLBEANS-187
> Project: XMLBeans
> Issue Type: Bug
> Affects Versions: Version 1.0.4, Version 2
> Environment: windows xp, tested on java 1.4.2 and 1.5
> Reporter: Ben Anderson
> Attachments: ben.patch
>
>
> I posted this as a mail note a while back:
> http://marc.theaimsgroup.com/?l=xmlbeans-dev&m=111599749418156&w=2
> The problem came about when I tried using the save method in cocoon with saxon. \
> With xalan everthing works fine, but not with saxon. Michael Kay claims that saxon \
> is correct: http://marc.theaimsgroup.com/?l=xmlbeans-dev&m=111599522507748&w=2
> according to the sax spec:
> http://www.saxproject.org/apidoc/org/xml/sax/Attributes.html#g
> So, no big deal but it definitely breaks unless the patch I will attach is applied.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
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