#262 @xml:space vs. CDATA for blocks of code

AMBER
closed-fixed
5
2012-09-07
2011-03-18
No

Section 22.1.1 (#TDphraseTE) says to use @xml:space to preserve space within any of the elements in this section. However, a discussion on TEI-L ( http://listserv.brown.edu/archives/cgi-bin/wa?A2=ind1103&L=TEI-L&T=0&F=&S=&P=9953 ) yielded a recommendation to use <![CDATA[]] for this purpose. Would be good to adjust the guidelines to match the outcome of the discussion.

Discussion

  • Lou Burnard

    Lou Burnard - 2011-03-20
    • milestone: --> AMBER
     
  • Sebastian Rahtz

    Sebastian Rahtz - 2011-04-02

    I dont think the discussion ended up agreeing on CDATA at all. The purpose of CDATA is to solely to avoid having the ecape the magic <> and & characters, it says nothing about space at all. @xml:space affects the space only when the content is not mixed.

    I agree 22.1.1 does not read right, but I think all this is needed is to remove entirely the paragraph saying "The global xml:space is available to indicate that white space should be preserved within the content of these elements."

     
  • Lou Burnard

    Lou Burnard - 2011-11-09
    • assigned_to: nobody --> bansp
     
  • Lou Burnard

    Lou Burnard - 2011-11-09

    If we retain xml:space, we should make clear how it works. It's an expression of intent, and it applies only to element content, not to mixed content. Accept Sebastian's suggestion, but add more clarification to discussion of xml:space (possibly referenced from here)

     
  • Piotr Banski

    Piotr Banski - 2012-04-19
    • assigned_to: bansp --> nobody
     
  • Piotr Banski

    Piotr Banski - 2012-04-19

    On Apr 18, the Council formulated this task for Paul and Rebecca:

    Expand our explanation of xml:space in the Guidelines:
    * in note: expand to acknowledge that many parsers may not handle xml:space properly
    * clarify definition of xml:space’s “default” value to match the XML spec (that is, “whatever the processor would normally do)
    * remove sentence in prose of chapter 22 "the global @xml:space is available to indicate that white space should be preserved within the content of these elements"

    (I am unassigning this ticket, pending Paul's and/or Becky's registration at SF)

     
  • Lou Burnard

    Lou Burnard - 2012-06-17
    • assigned_to: nobody --> rwelzenb
     
  • Martin Holmes

    Martin Holmes - 2012-06-17

    Both Paul (pfschaffner ) and Becky (rwelzenb) are SF users and members of the project.

     
  • Rebecca Welzenbach

    Done in revision 10790. (pending successful rebuild)

     
  • Rebecca Welzenbach

    • status: open --> closed-fixed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks