XML-Technologien

XML-Technologien

Posts 1-7 of 7
  • Mario Schmidt
    Mario Schmidt    Premium Member
    The company name is only visible to registered members.
    Katalog DTD mit einfachem XHTML
    Hallo,
    ich hab mit folgender dynamischer DTD Probleme (Beispiel 7-4) aus XML in a nutshell kopiert:

    <!ELEMENT catalog (catalog_entry*)>
    <!ELEMENT catalog_entry (name, price, item_number, color, size, description)>
    <!ELEMENT name (#PCDATA)>
    <!ELEMENT size (#PCDATA)>
    <!ELEMENT price (#PCDATA)>
    <!ELEMENT item_number (#PCDATA)>
    <!ELEMENT color (#PCDATA)>

    <!-- throw away the modules we don't need -->
    <!ENTITY % xhtml-hypertext.module "IGNORE" >
    <!ENTITY % xhtml-ruby.module "IGNORE" >
    <!ENTITY % xhtml-edit.module "IGNORE" >
    <!ENTITY % xhtml-pres.module "IGNORE" >
    <!ENTITY % xhtml-applet.module "IGNORE" >
    <!ENTITY % xhtml-param.module "IGNORE" >
    <!ENTITY % xhtml-bidi.module "IGNORE" >
    <!ENTITY % xhtml-form.module "IGNORE" >
    <!ENTITY % xhtml-table.module "IGNORE" >
    <!ENTITY % xhtml-image.module "IGNORE" >
    <!ENTITY % xhtml-csismap.module "IGNORE" >
    <!ENTITY % xhtml-ssismap.module "IGNORE" >
    <!ENTITY % xhtml-meta.module "IGNORE" >
    <!ENTITY % xhtml-script.module "IGNORE" >
    <!ENTITY % xhtml-style.module "IGNORE" >
    <!ENTITY % xhtml-link.module "IGNORE" >
    <!ENTITY % xhtml-base.module "IGNORE" >

    <!-- import the XHTML DTD, at least those parts we aren't ignoring.
    You will probably need to change the system ID to point to
    whatever directory you've stored the DTD in.
    -->
    <!ENTITY % xhtml11.mod PUBLIC "-//W3C//DTD XHTML 1.1//EN"
    "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
    %xhtml11.mod;

    <!ELEMENT description ( %Block.mix; )+>

    -----------------------------------------------------------------------------------------------------------
    Ich bekomme immer folgenden Fehler an unten angezeigter Stelle (File:http://www.w3.org/TR/xhtml-modularization/DTD/xhtml-special....):

    <!-- Relevant ISO entity set is given unless names are newly introduced.
    New names (i.e., not in ISO 8879 [SGML] list) do not clash with
    any existing ISO 8879 entity names. ISO 10646 [ISO10646] character
    numbers are given for each character, in hex. Entity values are
    decimal conversions of the ISO 10646 values and refer to the
    document character set. Names are Unicode [UNICODE] names.
    -->

    <!-- C0 Controls and Basic Latin -->
    >------> <!ENTITY lt "&<" ><!-- less-than sign, U+003C ISOnum -->

    Pre-defined entity 'lt' should be declared as "&<"
    ......

    Zuerst habe ich vermutet, dass ein Übersetzungsfehler drin war, weil in der deutschen Übersetzung in den Beispielen manchmal die Tags einfach mit übersetzt worden sind, obwohl in DTDs in englisch definiert, aber das wars dann doch nicht, nachdem ich mir eine englische Version aus dem Netz gezogen habe.
    Die Angabe von
    <!ENTITY % xhtml11.mod PUBLIC "-//W3C//DTD XHTML 1.1//EN"
    "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
    war auch nicht so im Beispiel sondern relativ: "xhtml11/DTD/xhtml11.dtd">

    Hat jemand Ahnung davon und kann mir ein Tipp geben? Als Editor nehm ich XMLSpy.

    Gruß,
    Mario Schmidt
  • Post visible to registered members
  • Post visible to registered members
  • Mario Schmidt
    Mario Schmidt    Premium Member
    The company name is only visible to registered members.
    Re^3: Katalog DTD mit einfachem XHTML
    Hallo,
    ja, das ist ein Darstellungsfehler hier, bzw. war mein Fehler beim reinkopieren. In dem File
    "http://www.w3.org/TR/xhtml-modularization/DTD/xhtml-special...." sind die Zeichen schon richtig mit '&#38 und &#60' definiert.
    Ich weiss nur weder, warum das angemeckert wird bzgl. des geschriebenen Codebeispiels, noch warum der Editor meint, dass in dem xhtml-special-file ein Validation-Error drin sein soll. Schliesslich ist der aus dem Netz und sollte doch stimmen. Aber mich wundert auch, dass diese Definition überhaupt herangezogen wird, weil ich doch einfach nur 'http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd' einbinden möchte - von xhtml-special hab ich doch gar nichts gesagt. Das scheint aber irgendwie ein Teil von xhtml zu sein und wird wohl automatisch mitgeprüft.
    Ich habe eben nochmal versucht, das ganze zu ignorieren mit
    <!ENTITY % xhtml-special.module "IGNORE" > und
    <!ENTITY % xhtml-special.ent "IGNORE" >
    hat aber nichts gebracht.
    Gruß,
    Mario Schmidt
    P.S.: Es ist nett, mich gleich auf die Schema-Schiene bringen zu wollen, da komme ich auch noch hin, aber ich will das jetzt einfach verstehen. :-)
  • Tom Wagner
  • Mario Schmidt
    Mario Schmidt    Premium Member
    The company name is only visible to registered members.
    Validity error in w3 document xhtml-special.ent
    Danke schön. Das wars also.
    Gruß,
    Mario Schmidt
  • Tom Wagner
    Tom Wagner    Premium Member   Group moderator
    The company name is only visible to registered members.
    Re: Validity error in w3 document xhtml-special.ent
    Mario Schmidt schrieb:
    Danke schön. Das wars also.
    Gruß,
    Mario Schmidt

    Hallo,

    ich dachte auch immer XML-Spy dürfte da doch keinen Fehler bringen..
    Die Validierung ist eben strikt ausgelegt und richtig...
    naja wir hoffen auf eine Definition von XHTML 2.0 in XSD ...

    Viele Grüße
    Tom
    This post was modified on 19 Aug 2005 at 12:03 pm.