cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Hartmann (JIRA)" <>
Subject [jira] Created: (COCOON-2191) XML namespace declaration added in certain circumstances
Date Wed, 02 Apr 2008 20:55:25 GMT
XML namespace declaration added in certain circumstances

                 Key: COCOON-2191
             Project: Cocoon
          Issue Type: Bug
          Components: Blocks: Serializers
    Affects Versions: 2.1.12-dev (Current SVN)
            Reporter: Andreas Hartmann


    <map:generate src="test.xml"/>
    <map:transform type="i18n"/>
    <map:serialize type="xml"/>

Source document (test.xml):

    <?xml version="1.0" encoding="UTF-8"?>
      <i18n:text xmlns:i18n="">foo</i18n:text>

Output of XMLSerializer:

    <?xml version="1.0" encoding="UTF-8"?>
      <element xmlns:xml=""/>

The xmlns:xml declaration is added due to an underflow of the Namespaces stack. The field
Namespaces.last becomes 1 and therefore the xml namespace is committed (which I guess should
never happen). I'm not sure yet if this is a problem of the serializers block or maybe of
the I18nTransformer.

The problem is that this happens when generating RSS feeds, and IE doesn't accept them if
they contain namespace declarations.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message