I'm confused... If I have something like this in an already existing
XML document (not produced with XXE):

  <pre>
  x.times do
    puts "Hello World!"
  end
  </pre>

or the same with programlisting element in the case of DocBook, then
in XXE displays an empty line at the beginning of the program listing.
The avoid that, you have to write:

  <pre>x.times do
    puts "Hello World!"
  end
  </pre>

Also, the linebreak before the </pre> causes the XXE to show an
"enter" symbol (but no empty line luckily). So, for the things to look
good in XXE the XML have to contain:

  <pre>x.times do
    puts "Hello World!"
  end</pre>

Logical, but looks strange... I mean, I haven't seen many people doing
this. What are the statements in the "standards" that dictate this
behavior of XXE? Is this the correct behavior at all? (Surely I'm
lame, but I couldn't find anything related to this topic with Google.)

-- 
Best regards,
 Daniel Dekany


Reply via email to