XhtmlBaseSink: problems with xdoc source attributes
---------------------------------------------------

                 Key: DOXIA-446
                 URL: https://jira.codehaus.org/browse/DOXIA-446
             Project: Maven Doxia
          Issue Type: Bug
          Components: Core
    Affects Versions: 1.2
            Reporter: Lukas Theussl


Given the xdoc snippet
{code:xml}
<source class="pretty">some source</source>
{code}
the generated html output is
{code:xml}
<div class="source"><pre>some source</pre></div>
{code}
ie the class attribute gets replaced. I think the correct output should be
{code:xml}
<div class="source"><pre class="pretty">some source</pre></div>
{code}

Another problem: take
{code:xml}
<source id="pretty">some source</source>
{code}
This gets transformed into
{code:xml}
<div class="source" id="pretty"><pre id="pretty">some source</pre></div>
{code}
which is not valid xhtml because of the duplicate id.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to