Menu

#23 Escaping while Stringification

2.00_pre-release
closed
5
2007-11-23
2007-11-20
No

Stringification of Basedatatypes shouldn't do xml escaping.

Discussion

  • Martin Kutter

    Martin Kutter - 2007-11-20

    Logged In: YES
    user_id=884175
    Originator: NO

    Could be achieved by just dropping a "to_string :STRINGIFY" sub into anySimpleType.

    Seems sensible, as escaping forces users to do extra work when embedding simpleType objects in templates.

    Should probably not be changed for complexTypes yet - though we might drop stingification completely, as it can induce unnoticed performance penalties when writing code like

    if ($complexType)

    In this statement $complexType actually serializes to its XML value...

     
  • Martin Kutter

    Martin Kutter - 2007-11-23
    • status: open --> closed
     
  • Martin Kutter

    Martin Kutter - 2007-11-23

    Logged In: YES
    user_id=884175
    Originator: NO

    Fixed in rev409.

    SimpleTypes now just return their value on serialization.

     

Log in to post a comment.

Auth0 Logo