Re: Edit xml files with Emacs for Docbook

"Markos [email protected] [emacs-nxml-mode]" <[email protected]> Sat, 9 Apr 2016 12:12:36 +0000
Newsgroups gmane.emacs.nxml.general
Message-ID <[email protected]>
--------------000000090808090203030605
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit

Hi Peter,

Em 07-04-2016 20:50, Peter Flynn [email protected] [emacs-nxml-mode] 
escreveu:
>
> On 03/25/2016 03:48 PM, Markos [email protected] [emacs-nxml-mode] wrote:
> > I've just joined to the list.
>
> Welcome aboard.
>
Thanks.

> > I use Emacs to edit source files in xml for DocBook.
>
> As do many of us, I suspect
>
> > I used a few years Emacs in Debian Squeeze and the autocomplete feature
> > worked well.
>
> Were you using psgml-mode and a DTD?
>

I am a simple user. I write the source file source_file.xml and run 
thecommand:

xsltproc --stringparam section.autolabel 1 --stringparam 
section.label.includes.component.label 1 
/usr/share/xml/docbook//stylesheet/docbook-xsl/xhtml/chunk.xsl 
source_file.xml

> > But after I changed to Debian Jessie I can't use this features anymore.
>
> The default changed to nxml-mode.
>
> > How do I enable this feature in Emacs to edit my XML source files for
> > DocBook.
>
> If you are still using DTDs, install psgml-mode. To overcome the rather
> annoying way that nxml-mode takes over xml-mode, you will need to type
>
> M-x sgml-mode RET M-x xml-mode RET
>
> Then you will have the psgml-mode editing facilities back again.
>
> ///Peter
>
> 


--------------000000090808090203030605
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit





<head>

<style type="text/css">
<!--

/* start of attachment style */
       .ygrp-photo-title{
         clear: both;
         font-size: smaller;
         height: 15px;
         overflow: hidden;
         text-align: center;
         width: 75px;
       }
       div.ygrp-photo{
         background-position: center;
         background-repeat: no-repeat;
         background-color: white;
         border: 1px solid black;
         height: 62px;
         width: 62px;
       }

       div.photo-title 
         a,
         div.photo-title a:active,
         div.photo-title a:hover,
         div.photo-title a:visited {
           text-decoration: none; 
       }

       div.attach-table div.attach-row {
         clear: both;
       }

       div.attach-table div.attach-row div {
         float: left;
         /* margin: 2px;*/
       }

       p {
         clear: both;
         padding: 15px 0 3px 0;
	 overflow: hidden;
       }

       div.ygrp-file {
         width: 30px;
         valign: middle;
       }
       div.attach-table div.attach-row div div a {
         text-decoration: none;
       }

       div.attach-table div.attach-row div div span {
         font-weight: normal;
       }

       div.ygrp-file-title {
         font-weight: bold;
       }
 /* end of attachment style */
        -->
        </style>
        </head>
<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">


<!-- |**|begin egp html banner|**| -->

<br><br>

<!-- |**|end egp html banner|**| -->



    Hi Peter,<br>
    <br>
    <div class="moz-cite-prefix">Em 07-04-2016 20:50, Peter Flynn
      <a class="moz-txt-link-abbreviated" href="mailto:[email protected]">[email protected]</a> [emacs-nxml-mode] escreveu:<br>
    </div>
    <blockquote cite="mid:[email protected]" type="cite"> <span
        style="display:none"> </span>
      
          <div id="ygrp-text">
            <p>On 03/25/2016 03:48 PM, Markos <a class="moz-txt-link-abbreviated" href="mailto:[email protected]">[email protected]</a>
              [emacs-nxml-mode] wrote:<br>
              &gt; I've just joined to the list.<br>
              <br>
              Welcome aboard.<br>
              <br>
            </p>
          </div>
        </div>
      </div>
    </blockquote>
    Thanks.<br>
    <br>
    <blockquote cite="mid:[email protected]" type="cite">
      <div id="ygrp-mlmsg" style="position:relative;">
        <div id="ygrp-msg" style="z-index: 1;">
          <div id="ygrp-text">
            <p>
              &gt; I use Emacs to edit source files in xml for DocBook.<br>
              <br>
              As do many of us, I suspect<br>
              <br>
              &gt; I used a few years Emacs in Debian Squeeze and the
              autocomplete feature <br>
              &gt; worked well.<br>
              <br>
              Were you using psgml-mode and a DTD?<br>
              <br>
            </p>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
    <span id="result_box" class="" lang="en"><span class="">I</span> <span
        class="">am a simple</span> <span>user.</span>  <span>I write</span>
      <span>the</span> <span>source</span> <span>file source_file.xml</span>
      <span>and</span> <span class="alt-edited">run</span> the<span>
        command:</span></span><br>
    <br>
    xsltproc --stringparam section.autolabel 1 --stringparam
    section.label.includes.component.label 1
    /usr/share/xml/docbook//stylesheet/docbook-xsl/xhtml/chunk.xsl
    source_file.xml<br>
    <br>
    <blockquote cite="mid:[email protected]" type="cite">
      <div id="ygrp-mlmsg" style="position:relative;">
        <div id="ygrp-msg" style="z-index: 1;">
          <div id="ygrp-text">
            <p>
              &gt; But after I changed to Debian Jessie I can't use this
              features anymore.<br>
              <br>
              The default changed to nxml-mode.<br>
              <br>
              &gt; How do I enable this feature in Emacs to edit my XML
              source files for <br>
              &gt; DocBook.<br>
              <br>
              If you are still using DTDs, install psgml-mode. To
              overcome the rather<br>
              annoying way that nxml-mode takes over xml-mode, you will
              need to type<br>
              <br>
              M-x sgml-mode RET M-x xml-mode RET<br>
              <br>
              Then you will have the psgml-mode editing facilities back
              again.<br>
              <br>
              ///Peter<br>
            </p>
          </div>
          
      
      <!-- end group email -->
    </blockquote>
    <br>
  



<!-- |**|begin egp html banner|**| -->

<br>


<br>

<!-- |**|end egp html banner|**| -->


<div width="1" style="color: white; clear: both;"/>__._,_.___</div>

      
  

    
    <div id="fromDMARC" style="clear:both; margin-top: 10px;">
         <hr style="height:2px ; border-width:0; color:#E3E3E3; background-color:#E3E3E3;">
         Posted by: Markos &lt;[email protected]&gt;         <hr style="height:2px ; border-width:0; color:#E3E3E3; background-color:#E3E3E3;">
    </div>
<!-- Start Recommendations -->
<!-- End Recommendations -->



<!-- |**|begin egp html banner|**| -->

  <img src="http://geo.yahoo.com/serv?s=97476590/grpId=10952198/grpspId=1706030390/msgId=2198/stime=1460214674" width="1" height="1"> <br>

<!-- |**|end egp html banner|**| -->

    
<!-- |**|begin egp html banner|**| -->

<br>



   
     
 
        <!-- |**|begin egp html banner|**| -->
        <div id="ygrp-vital" style="background-color: #f2f2f2; font-family: Verdana; font-size: 10px; margin-bottom: 10px; padding: 10px;">

        <span id="vithd" style="font-weight: bold; color: #333; text-transform: uppercase; "><a href="https://groups.yahoo.com/neo/groups/emacs-nxml-mode/info;_ylc=X3oDMTJmajk2YTh2BF9TAzk3MzU5NzE0BGdycElkAzEwOTUyMTk4BGdycHNwSWQDMTcwNjAzMDM5MARzZWMDdnRsBHNsawN2Z2hwBHN0aW1lAzE0NjAyMTQ2NzQ-" style="text-decoration: none;">Visit Your Group</a></span>

     <ul style="list-style-type: none; margin: 0; padding: 0; display: inline;">
                                                    </ul>
  </div>


<div id="ft" style="font-family: Arial; font-size: 11px; margin-top: 5px; padding: 0 2px 0 0; clear: both;">
  <a href="https://groups.yahoo.com/neo;_ylc=X3oDMTJlZDJxMW9zBF9TAzk3NDc2NTkwBGdycElkAzEwOTUyMTk4BGdycHNwSWQDMTcwNjAzMDM5MARzZWMDZnRyBHNsawNnZnAEc3RpbWUDMTQ2MDIxNDY3NA--" style="float: left;"><img src="http://l.yimg.com/ru/static/images/yg/img/email/new_logo/logo-groups-137x15.png" height="15" width="137" alt="Yahoo! Groups" style="border: 0;"/></a>
  <div style="color: #747575; float: right;"> &bull; <a href="https://info.yahoo.com/privacy/us/yahoo/groups/details.html" style="text-decoration: none;">Privacy</a> &bull; <a href="mailto:[email protected]?subject=Unsubscribe" style="text-decoration: none;">Unsubscribe</a> &bull; <a href="https://info.yahoo.com/legal/us/yahoo/utos/terms/" style="text-decoration: none;">Terms of Use</a> </div>
</div>

<!-- |**|end egp html banner|**| -->

  </div> <!-- ygrp-msg -->

   


  <br>

<!-- |**|end egp html banner|**| -->


<div style="color: white; clear: both;"/>__,_._,___</div>
</body>
</html>

--------------000000090808090203030605--