Re: Edit xml files with Emacs for Docbook

"Markos [email protected] [emacs-nxml-mode]" <[email protected]> Mon, 11 Apr 2016 11:14:01 +0000
Newsgroups gmane.emacs.nxml.general
Message-ID <[email protected]>
--------------080902070509050306060208
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit

Hi Peter,

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
"/usr/share/sgml/docbook/xml-dtd-4.1.2/docbookx.dtd">

<article lang="en">

    <articleinfo>
    <title>Open Automation for Water</title>
    <authorgroup>
<author><firstname>Markos</firstname></author>
</authorgroup>

<pubdate>December 2015</pubdate>

And the link of html file:
http://www.c2o.pro.br/en/automation/index.html

Do you suggest more current versions of DocBook?

Thanks for your attention,
Markos

Em 10-04-2016 18:25, Peter Flynn [email protected] [emacs-nxml-mode] 
escreveu:
>
> On 04/09/2016 01:12 PM, Markos [email protected] [emacs-nxml-mode] wrote:
>
> > I write the source file source_file.xml and run the command:
> >
> > 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
>
> That looks like a rather old DocBook process. I don't know if the
> DocBook stylesheets in the Debian package require a DTD or not. I think
> xsltproc is still stuck on XSLT 1.0, so maybe you are still using a DTD.
>
> Can you please post the first 10 lines of your source_file.xml?
>
> ///Peter
>
> 


--------------080902070509050306060208
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>
    &lt;?xml version="1.0" encoding="ISO-8859-1"?&gt;<br>
    &lt;!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"<br>
    "/usr/share/sgml/docbook/xml-dtd-4.1.2/docbookx.dtd"&gt;<br>
    <br>
    &lt;article lang="en"&gt;<br>
      <br>
       &lt;articleinfo&gt;<br>
       &lt;title&gt;Open Automation for Water&lt;/title&gt;    <br>
       &lt;authorgroup&gt;<br>
&lt;author&gt;&lt;firstname&gt;Markos&lt;/firstname&gt;&lt;/author&gt;<br>
    &lt;/authorgroup&gt;<br>
    <br>
    &lt;pubdate&gt;December 2015&lt;/pubdate&gt;<br>
    <br>
    And the link of html file:<br>
    <a class="moz-txt-link-freetext" href="http://www.c2o.pro.br/en/automation/index.html">http://www.c2o.pro.br/en/automation/index.html</a><br>
    <br>
    <span id="result_box" class="" lang="en"><span class="">Do you
        suggest</span> <span>more</span> <span>current versions of</span>
      <span>DocBook</span><span>?</span><br>
      <br>
      Thanks for your attention,<br>
      Markos<br>
      <span></span></span><br>
    <div class="moz-cite-prefix">Em 10-04-2016 18:25, 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 04/09/2016 01:12 PM, Markos <a class="moz-txt-link-abbreviated" href="mailto:[email protected]">[email protected]</a>
              [emacs-nxml-mode] wrote:<br>
              <br>
              &gt; I write the source file source_file.xml and run the
              command:<br>
              &gt; <br>
              &gt; xsltproc --stringparam section.autolabel 1
              --stringparam<br>
              &gt; section.label.includes.component.label 1<br>
              &gt;
              /usr/share/xml/docbook//stylesheet/docbook-xsl/xhtml/chunk.xsl<br>
              &gt; source_file.xml<br>
              <br>
              That looks like a rather old DocBook process. I don't know
              if the<br>
              DocBook stylesheets in the Debian package require a DTD or
              not. I think<br>
              xsltproc is still stuck on XSLT 1.0, so maybe you are
              still using a DTD.<br>
              <br>
              Can you please post the first 10 lines of your
              source_file.xml?<br>
              <br>
              ///Peter<br>
              <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=2200/stime=1460383955" 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=X3oDMTJmMTBkdmg5BF9TAzk3MzU5NzE0BGdycElkAzEwOTUyMTk4BGdycHNwSWQDMTcwNjAzMDM5MARzZWMDdnRsBHNsawN2Z2hwBHN0aW1lAzE0NjAzODM5NTU-" 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=X3oDMTJlbzFja3NrBF9TAzk3NDc2NTkwBGdycElkAzEwOTUyMTk4BGdycHNwSWQDMTcwNjAzMDM5MARzZWMDZnRyBHNsawNnZnAEc3RpbWUDMTQ2MDM4Mzk1NQ--" 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>

--------------080902070509050306060208--