Pere Porta wrote:
>
> Even looking at the sites whose links you gave me, I'm unable to
> discover how I have to do to delete the grids in both the tables and
> their cells in the HTML output.
>
> Would you be so kind to seek yourself it for me (or ask someone who
> knows) and tell me how?
>
> I've a real (and somewhat pressing) need of knowing it.
That's right. It does not work as documented in
http://docbook.sourceforge.net/release/xsl/current/doc/html/index.html
(which is not XMLmind's work)
In such case, you'll have to specify ``no grid for tables'' in the CSS
file used to style the HTML generated by XXE.
This file is always called html.css and is always found in the directory
containing the HTML files generated by XXE.
Please find attached to this email a modified version which specify ``no
grid for tables''.
FYI, I've simply added what follows at the end of the stock html.css:
---
table,
td,
th {
border-style: none;
}
---
After generating the HTML, please manually copy this file in order to
overwrite the html.css created by XXE.
There is, of course, a way to automate all this, but the explanation
would be much longer and much more complex.
>
> Kind regards
>
> Pere Porta
>
> 2010/10/21 Hussein Shafie <[email protected] <mailto:[email protected]>>
>
> On 10/21/2010 06:52 AM, Pere Porta wrote:
> > Thank you!
> >
> > Now, which are the steps to achieve the same thing (namely, tables
> > without any kind of grid) at converting the document to HTML?
> >
> > Is the procedure exactly the same as for to get a PDF outcome?
>
> I generally don't know the answer to your questions. I need to look at:
>
> http://docbook.sourceforge.net/release/xsl/current/doc/
>
> Either:
>
> * HTML Parameter Reference
> http://docbook.sourceforge.net/release/xsl/current/doc/html/index.html
>
> Or:
>
> * FO Parameter Reference
> http://docbook.sourceforge.net/release/xsl/current/doc/fo/index.html
>
> (FO is the intermediate format used when converting a document to PDF,
> PostScript, RTF, .odt, .docx, etc.)
>
> Now that you have understood how works the "Change Document Conversion
> Parameters" facility, why don't you look at the above reference manual
> by yourself?
>
> According to
> http://docbook.sourceforge.net/release/xsl/current/doc/html/index.html,
> the answer to your question is yes. (I've not tested it though.)
>
> Simply select in the dialog box displayed by "Options|Customize
> Configuration|Change Document Conversion Parameters" one of the two
> parameter groups corresponding to HTML rather than the one corresponding
> to PDF.
>
>
>
> > Pere Porta
> >
> > 2010/10/20 Hussein Shafie <[email protected]
> <mailto:[email protected]> <mailto:[email protected]
> <mailto:[email protected]>>>
> >
> > On 10/20/2010 04:17 PM, Pere Porta wrote:
> > >
> > > Sometimes I need that when converting a docbook document to
> pdf the
> > > tables I inserted in the docbook document to appear in the
> PDF output
> > > -and to be printed- WITHOUT the grid.
> > >
> > > Is this really possible?
> >
> > Yes, this is done by setting both the
> "table.cell.border.style" and
> > "table.frame.border.style" XSLT stylesheet
> > parameters to "none". See attached screenshot.
> >
> > About "-and to be printed-", File|Print is not the recommended
> way to
> > print in XXE. It works fine (better than in most Web
> browsers!) but it
> > will just print you a copy of what you see on screen.
> >
> > The recommended way to print is to use "DocBook|Convert
> Document|Print
> > PostScript". See
> >
>
> http://www.xmlmind.com/xmleditor/_distrib/doc/docbook/docbook_menu.html#docbook_convert_menu.
> > Of course, this requires you to have a PostScript-compatible
> printer.
> >
> >
> >
> > > Which is the shortest way to get this?
> >
> > Procedure for both "Convert to PDF" and "Print PostScript":
> >
> > [1] Open your document.
> >
> > [2] Select "Options|Customize Configuration|Change Document
> Conversion
> > Parameters".
> >
> > [3] Select a group of parameter using the combobox. For Example:
> > "Converter to PDF, PostScript"
> >
> > [4] Click Add.
> >
> > [5] Type:
> > ---
> > table.cell.border.style
> > ---
> > then:
> > ---
> > none
> > ---
> >
> > [6] Click OK to close the Add dialog box.
> >
> > [7] Click Add.
> >
> > [8] Type:
> > ---
> > table.frame.border.style
> > ---
> > then:
> > ---
> > none
> > ---
> >
> > [9] Click OK to close the Add dialog box.
> >
> > [10] Click OK to close the main dialog box.
> >
> > This setting is specified once for all and not each time
> you'll have to
> > convert a DocBook 4 or 5 document.
> >
> > Also note that you can also save this kind of special conversion
> > parameter set for later use and then restore your usual conversion
> > parameter set. See
> >
>
> http://www.xmlmind.com/xmleditor/_distrib/doc/help/com.xmlmind.xmleditapp.kit.part.ConversionParametersEditor.html#com.xmlmind.xmleditapp.kit.part.ParameterSetChooser
> >
> >
> >
> >
> > --
> > Pere Porta
> > "Ei nekrói ouk eguéirontai, fágomen kai píomen áurion gar
> apothnéskomen"
> > (1Cor 15:32)
> >
> >
> >
> >
> > --
> > XMLmind XML Editor Support List
> > [email protected] <mailto:[email protected]>
> > http://www.xmlmind.com/mailman/listinfo/xmleditor-support
>
>
>
>
>
>
> --
> Pere Porta
> "Ei nekrói ouk eguéirontai, fágomen kai píomen áurion gar apothnéskomen"
> (1Cor 15:32)
>
>
> ------------------------------------------------------------------------
>
>
> --
> XMLmind XML Editor Support List
> [email protected]
> http://www.xmlmind.com/mailman/listinfo/xmleditor-support
body {
font-family: sans-serif;
font-size: 10pt;
color: black;
background-color: white;
}
h1,
h2,
h3,
h4,
h5,
h6 {
color: #394986;
font-height: bold;
margin-top: 1.33ex;
margin-bottom: 1.33ex;
}
h1 {
font-size: 1.8em;
}
h2 {
font-size: 1.6em;
}
h3 {
font-size: 1.4em;
}
h4 {
font-size: 1.2em;
}
h5,
h6 {
font-size: 1em;
}
table {
border-spacing: 0;
font-size: 1em;
}
thead,
tfoot {
background-color: #EEEEEE;
}
th,
td {
padding: 0 0.5ex;
}
blockquote {
margin-top: 1.33ex 4ex;
}
p,
th,
td,
li,
dt,
dd {
font-size: 1em;
}
p,
pre,
ol,
dl,
ul,
table {
margin-top: 1.33ex;
margin-bottom: 1.33ex;
}
code,
kbd,
tt,
pre {
font-family: monospace;
font-size: 90%;
}
pre {
white-space: pre;
background-color: #EEEEEE;
border: 1px solid #C0C0C0;
padding: 1ex;
}
li {
margin-top: 1.33ex;
margin-bottom: 1.33ex;
}
*[compact] > li {
margin-top: 0;
margin-bottom: 0;
}
dt {
margin-top: 1.33ex;
margin-bottom: 0;
}
dd {
margin-top: 0;
margin-bottom: 1.33ex;
}
*[compact] > dt {
margin-top: 0;
}
*[compact] > dd {
margin-bottom: 0;
}
div.toc,
div.index,
div.list-of-figures,
div.list-of-tables,
div.list-of-examples,
div.list-of-equations,
div.list-of-procedures {
margin-top: 1.33ex;
margin-bottom: 1.33ex;
}
div.toc dl,
div.index dl,
div.list-of-figures dl,
div.list-of-tables dl,
div.list-of-examples dl,
div.list-of-equations dl,
div.list-of-procedures dl {
margin-top: 0;
margin-bottom: 0;
}
div.toc dt,
div.index dt,
div.list-of-figures dt,
div.list-of-tables dt,
div.list-of-examples dt,
div.list-of-equations dt,
div.list-of-procedures dt {
margin-top: 0.25ex;
margin-bottom: 0.25ex;
}
div.toc dd,
div.index dd,
div.list-of-figures dd,
div.list-of-tables dd,
div.list-of-examples dd,
div.list-of-equations dd,
div.list-of-procedures dd {
margin-top: 0;
margin-bottom: 0;
}
div.toc span.part,
div.toc span.chapter,
div.toc span.appendix {
font-weight: bold;
}
div.attribution {
text-align: right;
}
div.sidebar {
background-color: #EEEEFF;
border: 1px solid #C0C0DD;
padding: 1ex;
margin-top: 1.33ex;
margin-bottom: 1.33ex;
}
div.sidebar > p.title {
margin-top: 0.33ex;
}
div.example > p.title,
div.figure > p.title,
div.table > p.title,
div.procedure > p.title,
div.equation > p.title {
color: #394986;
font-weight: bold;
}
div.orderedlist,
div.calloutlist {
margin-top: 1.33ex;
margin-bottom: 1.33ex;
}
div.orderedlist > table,
div.calloutlist > table {
margin: 0;
}
div.orderedlist > table td,
div.calloutlist > table td {
vertical-align: baseline;
}
div.footnote {
font-size: 0.9em;
}
a:link {
text-decoration: none;
color: #004668;
}
a:hover,
a:visited:hover {
text-decoration: underline;
color: #004668;
}
a:visited {
text-decoration: none;
color: #135678;
}
span.term {
font-weight: bold;
}
abbr,
acronym {
font-weight: bold;
}
span.keycap,
span.keycode,
span.keysym,
span.mousebutton {
font-family: monospace;
font-size: 90%;
background-color: #EEEEEE;
padding: 0.2ex;
}
span.guimenu,
span.guisubmenu,
span.guimenuitem,
span.guibutton,
span.guiicon,
span.interface,
span.guilabel {
font-weight: bold;
}
table,
td,
th {
border-style: none;
}
--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support