What's wrong with this?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Bart Vandewoestyne

    What's wrong with this?

    I have an XML in wich i want to use some xhtml elements and entities:



    This file validates in XMLSpy 2005.

    The DTD that I've made for it is:



    Again, I get no errors from XMLSpy 2005 if I validate this.

    Now I also have this XSL stylesheet:



    But when I validate this one, I get:

    "Unable to locate a reference to a supported schema type (DTD, W3C
    Schema) within this document instance."

    So apparently something is wrong, but i cannot exactly see what...

    If i try to look at the .xml file in Mozilla, i get:

    XML Parsing Error: undefined entity
    Location: http://users.telenet.be/vandewoestyne/bart/taifaq.xml
    Line Number 17, Column 46:
    In het bewijs van stelling 2, eerste deel (⇐):

    It is complaining about the use of the ⇐ entity, but i do not
    understand why since I am including the xhtml entities in my .dtd file,
    am i?

    Regards,
    Bart

    --
    "Share what you know. Learn what you don't."
  • Richard Tobin

    #2
    Re: What's wrong with this?

    In article <1106648532.954 611@seven.kulne t.kuleuven.ac.b e>,
    Bart Vandewoestyne <MyFirstName.My LastName@telene t.be> wrote:[color=blue]
    >I have an XML in wich i want to use some xhtml elements and entities:
    >
    >http://users.telenet.be/vandewoestyne/bart/taifaq.xml[/color]

    This file is valid.
    [color=blue]
    >Now I also have this XSL stylesheet:
    >
    >http://users.telenet.be/vandewoestyne/bart/taifaq.xsl
    >
    >But when I validate this one, I get:
    >
    >"Unable to locate a reference to a supported schema type (DTD, W3C
    >Schema) within this document instance."[/color]

    This file - the stylesheet - doesn't have a DTD, so you can't validate it.
    This is not a problem.
    [color=blue]
    >If i try to look at the .xml file in Mozilla, i get:
    >
    >XML Parsing Error: undefined entity
    >Location: http://users.telenet.be/vandewoestyne/bart/taifaq.xml
    >Line Number 17, Column 46:
    >In het bewijs van stelling 2, eerste deel (&lArr;):
    >
    >It is complaining about the use of the &lArr; entity, but i do not
    >understand why since I am including the xhtml entities in my .dtd file,
    >am i?[/color]

    Mozilla probably doesn't read the external DTD. I'm not sure what
    you can do about that.

    -- Richard

    Comment

    • Stanimir Stamenkov

      #3
      Re: What's wrong with this?

      /Bart Vandewoestyne/:
      [color=blue]
      > If i try to look at the .xml file in Mozilla, i get:
      >
      > XML Parsing Error: undefined entity
      > Location: http://users.telenet.be/vandewoestyne/bart/taifaq.xml
      > Line Number 17, Column 46:
      > In het bewijs van stelling 2, eerste deel (&lArr;):
      >
      > It is complaining about the use of the &lArr; entity, but i do not
      > understand why since I am including the xhtml entities in my .dtd file,
      > am i?[/color]

      That's Mozilla Bug 69799 "External entities are not included in XML
      document" <https://bugzilla.mozill a.org/show_bug.cgi?id =69799>.

      Specify more meaningful subject line and address the issue further
      (if you need) in the Mozilla groups:



      --
      Stanimir

      Comment

      Working...