List Info

Thread: which emacs mode for V5.0? nXML or psgml




which emacs mode for V5.0? nXML or psgml
user name
2007-07-17 17:05:39
Which is the preferred mode for editing DocBook V5.0 docs?
Which is
the most popular? Is psgml being deprecated? Does psgml have
a lot of
features that are missing in nXML? I've got nXML working
with a
V5.0CR5 docbook.rnc. It seems pretty good.

I wanted to try out psgml to compare, but I haven't got it
to work. My
test file is below. If I run sgml-parse-prolog it seems to
run without
errors.

If I C-c C-o I get ``XML is not in any name group for
element
ARTICLE'', pointing to the : in xml:lang in the article
tag.

If I make the article tag simply <article> I get
``Start-tag of
undefined element ARTICLE; assume O O ANY'' from C-c C-o.

I wonder if the problem is with the
"file:/home/jra/..." in <!DOCTYPE
.... If I make it "/home/jra/..." (no file or
"file://home/jra/..."
(use //) I get:

sgml-error: Name expected; at: :id	ID	#IMPL
 - line 2 col 11 entity db.common.attributes
 /home/jra/usr/DocBook_V5.0CR5/docbook.dtd line 42 col 30
entity ARTICLE
 /home/jra/Projects/Side-Projects/docbook/test-dtd/testdoc.s
gml line 2 col 101

The line in the dtd it is complaining about is:

<!ATTLIST title
	xmlns	CDATA	#FIXED	"http://docbook.or
g/ns/docbook"
	role	CDATA	#IMPLIED
	%db.common.attributes;        <------- THIS ONE
	%db.common.linking.attributes;
>

Any ideas? Is it worth looking into psgml, or should I just
run with nXML?

Thanks, Jason

<?xml version='1.0'?>
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook
V5.0//EN"
"file:/home/jra/usr/DocBook_V5.0CR5/docbook.dtd"&g
t;
<article xmlns="http://docbook.or
g/ns/docbook" version="5.0"
xml:lang="en">
  <info>
    <title>A Title</title>
  </info>
  <sect1>
    <title>A Section</title>
    <sect2>
      <title>A Subsection</title>
      <para>
        Xxxx xxxxxx xxxxxxxx xxx xxxxxx xx xxxxxx xxx x x
xxxx.
      </para>
    </sect2>
  </sect1>
</article>

<!--
    Local Variables:
    mode: sgml
    End:
-->

------------------------------------------------------------
---------
To unsubscribe, e-mail: docbook-apps-unsubscribelists.oasis-open.org
For additional commands, e-mail: docbook-apps-helplists.oasis-open.org


RE: which emacs mode for V5.0? nXML or psgml
user name
2007-07-17 17:15:13
> Which is the preferred mode for editing DocBook V5.0
docs? Which is
> the most popular? Is psgml being deprecated? Does psgml
have a lot of
> features that are missing in nXML? I've got nXML
working with a
> V5.0CR5 docbook.rnc. It seems pretty good.

I have been using DocBook 5.0 and nXML intensively for the
last 3-4 months
and I'm very happy with it.

I have had to do a lot of customization layer hacking to
satisfy the SAE
standards document style requirements, and I've had to write
transforms to
convert custom XML specifications to DocBook tables.

The ability to register xsl files and apply them to XML
within emacs using
xslt is fast and convenient.  The schema element completion
<C-return> is
fast and helpful.

I keep an oXygen project current for the rest of the team
and have
occasionally used oXygen's excellent debugging facilities,
but for
day-to-day DocBook XML and customization layer work, I use
emacs/nXML.

PSGML may be way better, but I haven't needed to try it. 
Anyone?

Jim



------------------------------------------------------------
---------
To unsubscribe, e-mail: docbook-apps-unsubscribelists.oasis-open.org
For additional commands, e-mail: docbook-apps-helplists.oasis-open.org


Re: which emacs mode for V5.0? nXML or psgml
user name
2007-07-18 14:47:19
>>>>> "JA" == Jason Addison
writes:

    JA> [...]

    JA> If I C-c C-o I get ``XML is not in any name group
for element
    JA> ARTICLE'', pointing to the : in xml:lang in the
article tag.

    JA> [...]

Maybe there are already far more competent responses on
their way,
but maybe you are quite curious to get a very quick response
...

psgml *can* cope with XML DTDs, but only as long as
*namespaces* are *not*
being made use of, and within your "xml:lang" the
"xml:" is, what psgml
cannot handle.

Actually this reads like "I solved the namespace
problem":

    http://lists.xml.org/archives/xml-dev/199907/msg00243.
html

The article is from *1999* !
So derive your own conclusions about the state of psgml!




I personally migrated (almost) entirely with my DocBook
files to nXML
and in the meantime also to "DocBook XML 5.0".

The "funny" thing about the XSL stylesheets is,
that they seem to handle
4.x and also 5.x DocBook XML files,
it looks like they just care for features, not for version
numbers.


Actually I miss psgml features like "C-c C-o" to
get a buffer offering
all the attributes and the abilty to edit their values in
there.

I also find it quite adventurous to use software (RELAX NG,
nXML mode),
whose developer (that I have a lot of admiration for)
disappeared quite
a while ago and that didn't find maintainers in the
meantime. Alright,
alright, it seriously looks, as if there are no (big)
problems with
RELAX NG and nXML mode waiting to get solved, but maybe I
was just not
observant enough ... 

For the time being I will just enjoy (and I hope you also
do) nXML mode,
it's support for DocBook, DocBook itself, the XSL
stylesheets towards
HTML and towards .fo, and just all of that, as far as I
understand it ... 

------------------------------------------------------------
---------
To unsubscribe, e-mail: docbook-apps-unsubscribelists.oasis-open.org
For additional commands, e-mail: docbook-apps-helplists.oasis-open.org


[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )