XMLSPY allowing parameter entity reference in XML document

Discussion in 'XML' started by Ion Chalmers Freeman, Sep 7, 2004.

  1. Um, I think XMLSPY is wrong about this, but it was surprising, so I
    wanted to check.
    my dtd has
    <!ENTITY % en "value">
    and
    <!ATTLIST element attribute CDATA #FIXED "%en;">

    so, when I generate an XML document off the dtd, XMLSPY gives me a
    one-value dropdown for the value of attribute as "%en;". And it won't
    accept "value". Aren't parameter entities meaningless outside the DTD?
     
    Ion Chalmers Freeman, Sep 7, 2004
    #1
    1. Advertising

  2. In article <>,
    Ion Chalmers Freeman <> wrote:

    ><!ENTITY % en "value">
    >and
    ><!ATTLIST element attribute CDATA #FIXED "%en;">


    >so, when I generate an XML document off the dtd, XMLSPY gives me a
    >one-value dropdown for the value of attribute as "%en;". And it won't
    >accept "value". Aren't parameter entities meaningless outside the DTD?


    Yes, it's wrong about this. The %en; should be replaced when the
    ATTLIST declaration is parsed.

    -- Richard
     
    Richard Tobin, Sep 7, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Tony Prichard
    Replies:
    0
    Views:
    791
    Tony Prichard
    Dec 12, 2003
  2. Altova Announcements
    Replies:
    0
    Views:
    687
    Altova Announcements
    May 25, 2004
  3. Samuel van Laere

    Entity Name or Entity Number?

    Samuel van Laere, Feb 24, 2007, in forum: HTML
    Replies:
    4
    Views:
    1,752
    Jukka K. Korpela
    Feb 24, 2007
  4. markla
    Replies:
    1
    Views:
    585
    Steven Cheng
    Oct 6, 2008
  5. KaR
    Replies:
    0
    Views:
    689
Loading...

Share This Page