You are not logged in.
Hi,
There's a dtd file intended as a template for creating manually a specific XML document. After an extensive research I found XML Copy Editor, which looks like an excellent tool for my purpose, with its on-the-fly validation.
Unfortunately, I've got stuck. Here's the Validation Help entry in its entirety:
Validation
XML Copy Editor supports DTD, XML Schema and RELAX NG validation.
To validate against a DTD or XML Schema, the document needs to be attached to the relevant definition or schema.
DTDs are stored locally. A number of DTDs are installed by default (e.g. the public identifier '-//W3C/DTD XHTML 1.0 Strict//EN' is keyed to a local copy of the XHTML 1.0 Strict DTD), but you can also add new DTDs by editing the file 'catalog' in the 'catalog' directory and saving copies of the DTDs themselves in the 'dtd' directory.
As RELAX NG does not define an association mechanism, you can either select one of a number of RELAX NG preset grammars (XHTML, DocBook, XSLT, etc.) or select a grammar using a file dialog. You can supply additional preset grammars by copying them to the 'rng' directory.
Where am I supposed to find the 'catalog' file and 'dtd' directory? I've searched my box thoroughly, and googled to the best of my ability; nothing .
That's what happens when the author is allowed to document his program himself . Since there are 24 votes for the package in the AUR, I really hope for a tip...
Offline
the package wouldn't build for me else i'd do this for you. the PKGBUILD only puts things in /usr but you never know. i'd run these in order:
# updatedb && locate catalog
# find /usr -name 'catalog'
# find /usr -name '*catlog*'
# find / -name 'catalog'
# find / -name '*catalog*'
if that doesn't give you it, it ain't there
//github/
Offline
Look at /usr/share/xml/docbook/xml-dtd-<version>
To know or not to know ...
... the questions remain forever.
Offline
Sorry... There's no such thing as /usr/share/xml/docbook directory on my box .
Offline
I got them from extra/docbook-xml.
To know or not to know ...
... the questions remain forever.
Offline
I got them from extra/docbook-xml.
Thanks! But this seems to have little or nothing to do with my problem. I want to make a custom dtd known (for the purposes of XML document validation) to XML Copy Editor, no more, no less. I'm interested in you can also add new DTDs by editing the file 'catalog' in the 'catalog' directory and saving copies of the DTDs themselves in the 'dtd' directory part of the help.
This is the dtd in question. Look into my initial post once more, please...
UPD:
BTW, another editor (Screem) has an interesting configuration:
$ cat /usr/share/screem/dtd/catalog
PUBLIC "-//W3C//DTD HTML 4.01//EN" http%3A%2F%2Fwww.w3.org%2FTR%2Fhtml4%2Fstrict.dtd
PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" http%3A%2F%2Fwww.w3.org%2FTR%2Fhtml4%2Floose.dtd
PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" http%3A%2F%2Fwww.w3.org%2FTR%2Fhtml4%2Fframeset.dtdPUBLIC "-//W3C//ENTITIES Latin1//EN//HTML" HTMLlat1.ent
PUBLIC "-//W3C//ENTITIES Symbols//EN//HTML" HTMLsymbols.ent
PUBLIC "-//W3C//ENTITIES Special//EN//HTML" HTMLspecial.entPUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" http%3A%2F%2Fwww.w3.org%2FTR%2Fxhtml1%2FDTD%2Fxhtml1-strict.dtd
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" http%3A%2F%2Fwww.w3.org%2FTR%2Fxhtml1%2FDTD%2Fxhtml1-transitional.dtd
PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" http%3A%2F%2Fwww.w3.org%2FTR%2Fxhtml1%2FDTD%2Fxhtml1-frameset.dtdPUBLIC "-//W3C//ENTITIES Latin 1 for XHTML//EN" xhtml-lat1.ent
PUBLIC "-//W3C//ENTITIES Symbols for XHTML//EN" xhtml-symbol.ent
PUBLIC "-//W3C//ENTITIES Special for XHTML//EN" xhtml-special.entPUBLIC "-//Screem//DTD Tag Tree 1.0" screem-tagtree.dtd
PUBLIC "-//Screem//DTD Tag Tree Config 1.0" screem-tagtree-config.dtd
PUBLIC "-//Screem//DTD GTKUIManager - no official public id this is for screem only" gtkuimanager.dtd
Is this the thing I have to create for XML Copy Editor? How am I supposed to add my dtd file?
Last edited by Llama (2009-05-02 22:24:42)
Offline
bump
Offline