* PSGML: validate uses SGML declaration for XML
@ 2002-10-30 2:55 D. D. Brierton
2002-10-30 14:22 ` Jhair Tocancipa Triana
2002-10-30 15:54 ` Paul Kinnucan
0 siblings, 2 replies; 6+ messages in thread
From: D. D. Brierton @ 2002-10-30 2:55 UTC (permalink / raw)
When I try and validate an XML document in PSGML mode with onsgmls
sgml-declaration is used as the first argument instead of sgm-xml-declaration.
I'm using Emacs 21.1.1 on Linux (Mandrake 8.2) and psgml 1.2.4.
The following variables are set in my .emacs:
(setq sgml-declaration "/usr/share/sgml/docbook/sgml-dtd-3.1/docbook.dcl")
(setq sgml-xml-declaration "/usr/share/sgml/openjade/pubtext/xml.dcl")
The value of sgml-validate-command is unchanged from the default:
sgml-validate-command's value is
"nsgmls -wxml -s %s %s"
Local in buffer test.xml; global value is "nsgmls -s %s %s"
Say I have a buffer like so:
======================================================================
<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-GB">
<head>
<title>Test</title>
</head>
<body>
<p>This is a Test</p>
</body>
</html>
<!--
Local Variables:
mode: xml
sgml-default-dtd-file:"~/lib/DTD/xhtml11/xhtml11.ced"
End:
-->
======================================================================
The mode line indicates that I am indeed in xml-mode, and
M-x describe-variable sgml-xml-p
returns
sgml-xml-p's value is t
Local in buffer top.xml; global value is nil
However, whenever I try and valdate my document the command I am prompted to
accept is:
nsgmls -wxml -s /usr/share/sgml/docbook/sgml-dtd-3.1/docbook.dcl test.xml
Note that it correctly picks up the -wxml option but seem to use
sgml-declaration instead of sgml-xml-declaration for the first argument.
I have been trying to get PSGMl set up for days now, and I'm beginning to lose
focus. Am I missing something totally stupid?
Best, Darren
--
======================================================================
D. D. Brierton darren@dzr-web.com www.dzr-web.com
Trying is the first step towards failure (Homer Simpson)
======================================================================
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: PSGML: validate uses SGML declaration for XML
2002-10-30 2:55 PSGML: validate uses SGML declaration for XML D. D. Brierton
@ 2002-10-30 14:22 ` Jhair Tocancipa Triana
2002-10-30 14:48 ` D. D. Brierton
2002-10-30 15:54 ` Paul Kinnucan
1 sibling, 1 reply; 6+ messages in thread
From: Jhair Tocancipa Triana @ 2002-10-30 14:22 UTC (permalink / raw)
>>>>> " " == D D Brierton <darren@dzr-web.com> writes:
> When I try and validate an XML document in PSGML mode with
> onsgmls sgml-declaration is used as the first argument instead
> of sgm-xml-declaration. I'm using Emacs 21.1.1 on Linux
> (Mandrake 8.2) and psgml 1.2.4.
> Note that it correctly picks up the -wxml option but seem to
> use sgml-declaration instead of sgml-xml-declaration for the
> first argument.
According to the documentation this is what is expected.
,----[ C-h v sgml-validate-command ]
| sgml-validate-command's value is "onsgmls -s %s %s"
|
| Documentation:
| *The shell command to validate an SGML document.
|
| This is a `format' control string that by default should contain two
| `%s' conversion specifications: the first will be replaced by the
| value of `sgml-declaration' (or the empty string, if nil); the
| second will be replaced by the current buffer's file name (or the
| empty string, if nil).
`----
Defining the sgml-validate-command as a list and not a string is maybe
what you need. Please, read the complete C-h v sgml-validate-command
for details.
Regards,
--
--Jhair
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: PSGML: validate uses SGML declaration for XML
2002-10-30 14:22 ` Jhair Tocancipa Triana
@ 2002-10-30 14:48 ` D. D. Brierton
0 siblings, 0 replies; 6+ messages in thread
From: D. D. Brierton @ 2002-10-30 14:48 UTC (permalink / raw)
On Wed, 30 Oct 2002 14:22:50 +0000, Jhair Tocancipa Triana wrote:
>>>>>> " " == D D Brierton <darren@dzr-web.com> writes:
>
> > When I try and validate an XML document in PSGML mode with onsgmls
> > sgml-declaration is used as the first argument instead of
> > sgm-xml-declaration. I'm using Emacs 21.1.1 on Linux (Mandrake 8.2)
> > and psgml 1.2.4.
>
> > Note that it correctly picks up the -wxml option but seem to use
> > sgml-declaration instead of sgml-xml-declaration for the first
> > argument.
>
> According to the documentation this is what is expected.
Hmmm - then what is the purpose of the variable sgml-xml-declaration? or
example, the sgml-validate-command is sensitive to whether the buffer is in
xml-mode or sgml-mode; in the former it is
onsgml -wxml -s %s %s
whereas in the latter it is
onsgml -s %s %s
I had understood that the whole point of having separate sgml-declaration and
sgml-xml-declaration was that the former would be substituted for the first
%s in sgml-validate-command when in sgml-mode, and that the latter would be
when in xml-mode. Am I misunderstanding that?
> ,----[ C-h v sgml-validate-command ]
> | sgml-validate-command's value is "onsgmls -s %s %s"
> |
> | Documentation:
> | *The shell command to validate an SGML document.
> |
> | This is a `format' control string that by default should contain two `%s'
> | conversion specifications: the first will be replaced by the value of
> | `sgml-declaration' (or the empty string, if nil); the second will be
> | replaced by the current buffer's file name (or the empty string, if nil).
> `----
>
> Defining the sgml-validate-command as a list and not a string is maybe what
> you need.
I'm not sure what you mean by that. Could you elaborate? I'm pretty clueless
when it comes to list ...
> Please, read the complete C-h v sgml-validate-command for
> details.
I have.
Thanks for your help.
Best, Darren
--
======================================================================
D. D. Brierton darren@dzr-web.com www.dzr-web.com
Trying is the first step towards failure (Homer Simpson)
======================================================================
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: PSGML: validate uses SGML declaration for XML
2002-10-30 2:55 PSGML: validate uses SGML declaration for XML D. D. Brierton
2002-10-30 14:22 ` Jhair Tocancipa Triana
@ 2002-10-30 15:54 ` Paul Kinnucan
2002-10-30 16:27 ` D. D. Brierton
1 sibling, 1 reply; 6+ messages in thread
From: Paul Kinnucan @ 2002-10-30 15:54 UTC (permalink / raw)
Cc: darren
Have you looked at my XML Authoring Environment for Emacs
at http://xae.sunsite.dk? It is intended to ease the pain
for newcomers of using Emacs to create and transform XML
documents. It includes psgml, the Docbook DTD, and saxon
and a menu of commands for transforming documents, including
a command that transforms and displays Docbook documents
in the default Emacs HTML browser (Internet Explorer on
my system).
- Paul
"D. D. Brierton" <darren@dzr-web.com> writes:
> When I try and validate an XML document in PSGML mode with onsgmls
> sgml-declaration is used as the first argument instead of sgm-xml-declaration.
> I'm using Emacs 21.1.1 on Linux (Mandrake 8.2) and psgml 1.2.4.
>
> The following variables are set in my .emacs:
>
> (setq sgml-declaration "/usr/share/sgml/docbook/sgml-dtd-3.1/docbook.dcl")
> (setq sgml-xml-declaration "/usr/share/sgml/openjade/pubtext/xml.dcl")
>
> The value of sgml-validate-command is unchanged from the default:
>
> sgml-validate-command's value is
> "nsgmls -wxml -s %s %s"
> Local in buffer test.xml; global value is "nsgmls -s %s %s"
>
> Say I have a buffer like so:
>
> ======================================================================
>
> <?xml version="1.0"?>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
> "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-GB">
> <head>
> <title>Test</title>
> </head>
> <body>
> <p>This is a Test</p>
> </body>
> </html>
> <!--
> Local Variables:
> mode: xml
> sgml-default-dtd-file:"~/lib/DTD/xhtml11/xhtml11.ced"
> End:
> -->
>
> ======================================================================
>
> The mode line indicates that I am indeed in xml-mode, and
>
> M-x describe-variable sgml-xml-p
>
> returns
>
> sgml-xml-p's value is t
> Local in buffer top.xml; global value is nil
>
> However, whenever I try and valdate my document the command I am prompted to
> accept is:
>
> nsgmls -wxml -s /usr/share/sgml/docbook/sgml-dtd-3.1/docbook.dcl test.xml
>
> Note that it correctly picks up the -wxml option but seem to use
> sgml-declaration instead of sgml-xml-declaration for the first argument.
>
> I have been trying to get PSGMl set up for days now, and I'm beginning to lose
> focus. Am I missing something totally stupid?
>
> Best, Darren
>
> --
> ======================================================================
> D. D. Brierton darren@dzr-web.com www.dzr-web.com
> Trying is the first step towards failure (Homer Simpson)
> ======================================================================
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: PSGML: validate uses SGML declaration for XML
2002-10-30 15:54 ` Paul Kinnucan
@ 2002-10-30 16:27 ` D. D. Brierton
2002-10-31 7:59 ` Charles Muller
0 siblings, 1 reply; 6+ messages in thread
From: D. D. Brierton @ 2002-10-30 16:27 UTC (permalink / raw)
On Wed, 30 Oct 2002 15:54:32 +0000, Paul Kinnucan wrote:
> Have you looked at my XML Authoring Environment for Emacs at
> http://xae.sunsite.dk? It is intended to ease the pain for newcomers of
> using Emacs to create and transform XML documents. It includes psgml, the
> Docbook DTD, and saxon and a menu of commands for transforming documents,
> including a command that transforms and displays Docbook documents in the
> default Emacs HTML browser (Internet Explorer on my system).
Yes, I have. I may investigate it further in the future, but as it stands
psgml together with well set up catlog files should fit my needs.
--
======================================================================
D. D. Brierton darren@dzr-web.com www.dzr-web.com
Trying is the first step towards failure (Homer Simpson)
======================================================================
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: PSGML: validate uses SGML declaration for XML
2002-10-30 16:27 ` D. D. Brierton
@ 2002-10-31 7:59 ` Charles Muller
0 siblings, 0 replies; 6+ messages in thread
From: Charles Muller @ 2002-10-31 7:59 UTC (permalink / raw)
Cc: help-gnu-emacs
> On Wed, 30 Oct 2002 15:54:32 +0000, Paul Kinnucan wrote:
>
>
> > Have you looked at my XML Authoring Environment for Emacs at
> > http://xae.sunsite.dk? It is intended to ease the pain for newcomers of
> > using Emacs to create and transform XML documents.
I installed this, but like the SGML/XML package that comes standard with
Emacs 21.2, when I try to validate, my XML documents are misinterpreted as
SGML, and thus hundreds of errors are generated. It's not a problem for me
because I am already using the TEI package to validate my XML without
problems, but I just thought I would mention it.
Chuck
---------------------------
Charles Muller <acmuller@gol.com>
Faculty of Humanities, Toyo Gakuen University
Digital Dictionary of Buddhism and CJKV-English Dictionary
[http://www.acmuller.net]
Mobile Phone: 090-9310-1787
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2002-10-31 7:59 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-30 2:55 PSGML: validate uses SGML declaration for XML D. D. Brierton
2002-10-30 14:22 ` Jhair Tocancipa Triana
2002-10-30 14:48 ` D. D. Brierton
2002-10-30 15:54 ` Paul Kinnucan
2002-10-30 16:27 ` D. D. Brierton
2002-10-31 7:59 ` Charles Muller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).