You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xmlbeans.apache.org by "Ben Anderson (JIRA)" <xm...@xml.apache.org> on 2005/08/12 13:02:26 UTC

[jira] Created: (XMLBEANS-187) sax spec requires local name

sax spec requires local name
----------------------------

         Key: XMLBEANS-187
         URL: http://issues.apache.org/jira/browse/XMLBEANS-187
     Project: XMLBeans
        Type: Bug
    Versions: Version 1.0.4, Version 2    
 Environment: windows xp, tested on java 1.4.2 and 1.5
    Reporter: Ben Anderson


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.
-
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: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[jira] Commented: (XMLBEANS-187) sax spec requires local name

Posted by "Jacob Danner (JIRA)" <xm...@xml.apache.org>.
    [ 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


[jira] Resolved: (XMLBEANS-187) sax spec requires local name

Posted by "Radu Preotiuc-Pietro (JIRA)" <xm...@xml.apache.org>.
     [ https://issues.apache.org/jira/browse/XMLBEANS-187?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Radu Preotiuc-Pietro resolved XMLBEANS-187.
-------------------------------------------

       Resolution: Fixed
    Fix Version/s: TBD

So what I did was changed the code so that those attributes are not included at all in the Attributes object. Hopefully, no-one out there has code that relies on them being there, because this is not what SAX says, as has been pointed out. I have added an XmlOption, SAVE_SAX_NAMESPACE_PREFIXES, to turn the old behavior on, as per spec, and made the change so that localName is reported correctly in that case. SVN revision is 641673. The spring issue seems to be the same thing and therefore should also be fixed.


> 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
>             Fix For: TBD
>
>         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


[jira] Updated: (XMLBEANS-187) sax spec requires local name

Posted by "Ben Anderson (JIRA)" <xm...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XMLBEANS-187?page=all ]

Ben Anderson updated XMLBEANS-187:
----------------------------------

    Attachment: ben.patch

Should apply to 2.0 as well.

> sax spec requires local name
> ----------------------------
>
>          Key: XMLBEANS-187
>          URL: http://issues.apache.org/jira/browse/XMLBEANS-187
>      Project: XMLBeans
>         Type: Bug
>     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.
-
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: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[jira] Commented: (XMLBEANS-187) sax spec requires local name

Posted by "dr soong (JIRA)" <xm...@xml.apache.org>.
    [ https://issues.apache.org/jira/browse/XMLBEANS-187?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12580802#action_12580802 ] 

dr soong commented on XMLBEANS-187:
-----------------------------------

Will this also fix the issue described in:

http://forum.springframework.org/archive/index.php/t-43958.html

Or should a new issue be opened for it?

> 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