[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[xml] xmllint and namespaces
- From: "Labib Iskander, Marcus" <ml cm4all com>
- To: "'xml gnome org'" <xml gnome org>
- Subject: [xml] xmllint and namespaces
- Date: Fri, 11 Oct 2002 14:19:34 +0200
Hi Stefan,
you are absolutly right: Put the namspace into the DTD definitions.
The colon isn't a special character in xml names (ok, not completly). And
DTDs aren't aware of its use in the namspace recommendation.
There is nothing special regarding libxml.
Cheers,
Marcus
> -----Original Message-----
> From: Stefan Kost [mailto:kost imn htwk-leipzig de]
> Sent: Friday, October 11, 2002 2:01 PM
> To: xml gnome org
> Subject: [xml] xmllint and namespaces
>
>
> Hi hi,
>
> I am sure this has been aksed bevor but wasn't succesful in
> the mail-archive.
> I've just tried to use
>
> xmllint --noout --valid test.xml
>
> on test.xml :
>
> <?xml version="1.0" encoding="UTF-8" ?>
> <!DOCTYPE giml SYSTEM "/opt/gitk/share/gitk/giml.dtd">
> <giml:giml xmlns:giml="http://gitk.sourceforge.net/">
> <giml:context/>
> </giml:giml>
>
> a fragment of the dtd :
>
> <!ELEMENT giml (context+)>
> <!ELEMENT context (#PCDATA)>
>
> and get the following output:
>
> test.xml:6: validity error: Element giml content doesn't
> follow the DTD
> Expecting (context)+, got (giml:context )
> </giml:giml>
>
> this looks to me as libxml2 would like me to put the name
> space into the dtd,
> which I don't belive is the right thing to do.
>
> Any ideas?
>
> Stefan
> --
> \|/ Stefan Kost
> <@ @> private business
> +-oOO-(_)-OOo-------------------------------------------------
> ----- - - - - -
> | __ Address Simildenstr. 5 HTWK Leipzig, Fb IMN,
> Postfach 300066
> | /// 04277 Leipzig 04277 Leipzig
> | __ /// Germany Germany
> | \\\/// Phone +49341 2253538 +49341 30766101
> | \__/ EMail st_kost gmx net kost imn htwk-leipzig de
> | WWW www.sonicpulse.de
www.imn.htwk-leipzig.de/~kost/about.html
===-=-=--=---=---------------------------------- - - - - -
_______________________________________________
xml mailing list, project page http://xmlsoft.org/
xml gnome org
http://mail.gnome.org/mailman/listinfo/xml
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]