You are not logged in.

#1 2009-05-01 17:45:40

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

XML Copy Editor: validate

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 sad .

That's what happens when the author is allowed to document his program himself smile . Since there are 24 votes for the package in the AUR, I really hope for a tip...

Offline

#2 2009-05-01 19:39:46

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

Re: XML Copy Editor: validate

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

Offline

#3 2009-05-02 09:33:38

bernarcher
Forum Fellow
From: Germany
Registered: 2009-02-17
Posts: 2,281

Re: XML Copy Editor: validate

Look at /usr/share/xml/docbook/xml-dtd-<version>


To know or not to know ...
... the questions remain forever.

Offline

#4 2009-05-02 10:58:02

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

Re: XML Copy Editor: validate

Sorry... There's no such thing as /usr/share/xml/docbook directory on my box sad .

Offline

#5 2009-05-02 13:19:04

bernarcher
Forum Fellow
From: Germany
Registered: 2009-02-17
Posts: 2,281

Re: XML Copy Editor: validate

I got them from extra/docbook-xml.


To know or not to know ...
... the questions remain forever.

Offline

#6 2009-05-02 16:06:58

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

Re: XML Copy Editor: validate

bernarcher wrote:

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.dtd

PUBLIC "-//W3C//ENTITIES Latin1//EN//HTML"              HTMLlat1.ent
PUBLIC "-//W3C//ENTITIES Symbols//EN//HTML"             HTMLsymbols.ent
PUBLIC "-//W3C//ENTITIES Special//EN//HTML"             HTMLspecial.ent

PUBLIC  "-//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.dtd

PUBLIC "-//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.ent

PUBLIC "-//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

#7 2009-05-05 03:43:39

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

Re: XML Copy Editor: validate

bump

Offline

Board footer

Powered by FluxBB