#42 AVTs in top-level data elements

v6.5
closed
5
2012-10-08
2001-11-21
Michael Kay
No

In a user-defined top-level element, Saxon is
interpreting the attributes as being attribute value
templates. This means that a top-level element such as
<my:data val="{"/> is rejected.

Reported by David Carlisle.

Present in 6.5 and all known earlier releases. (Saxon
validates user-defined top-level elements using the
same logic as literal result elements).

Discussion

  • Michael Kay

    Michael Kay - 2001-11-21

    Logged In: YES
    user_id=251681

    Slight misstatement of the problem above: it doesn't occur
    on the attribute of the top-level element itself, only on
    other elements nested inside it. These are treated as
    literal result elements because they aren't top-level
    elements - and in some contexts, such as saxon:function, it
    is appropriate to do so.

     
  • Michael Kay

    Michael Kay - 2001-11-21

    Logged In: YES
    user_id=251681

    Source code fixed (both branches). - MK

     
  • Michael Kay

    Michael Kay - 2001-12-21

    Logged In: YES
    user_id=251681

    Cleared in 7.0 - MK

     
  • Michael Kay

    Michael Kay - 2002-02-20

    Logged In: YES
    user_id=251681

    Cleared in 7.0 and in 6.5.1