Norman Walsh | 13 Mar 2012 21:30
Favicon
Gravatar

Re: How to Xinclude an Introduction in a chapter (ie, no <section>)?

"Bob Stayton" <bobs <at> sagehill.net> writes:

> <xi:include href="test-intro.xml" xpointer="xpointer(/simplesect/*)"
> xmlns:xi="http://www.w3.org/2001/XInclude"/>

As time progresses, it may be that the xpath() scheme will become more
widely available than the (never finished) xpointer() scheme.

                                        Be seeing you,
                                          norm

--

-- 
Norman Walsh <ndw <at> nwalsh.com>      | Syllables govern the world.--John
http://www.oasis-open.org/docbook/ | Selden
Chair, DocBook Technical Committee |
Norman Walsh | 13 Mar 2012 21:31
Favicon
Gravatar

Re: How to Xinclude an Introduction in a chapter (ie, no <section>)?

Jeffrey Walton <noloader <at> gmail.com> writes:
> Its unfortunate the folks who wrote the standard have decided to make
> a task which should be simple so difficult (from the dumb user
> perspective, which is what I am).

Yes. Well. There were big plans that never materialized and so we
wound up sort of half-way across the chasm. If it's any consolation,
although the problem you have should be simple, there are a great many
problems not far away from it that are actually quite a bit trickier.

                                        Be seeing you,
                                          norm

--

-- 
Norman Walsh <ndw <at> nwalsh.com>      | Almost every man wastes part of
http://www.oasis-open.org/docbook/ | his life in attempts to display
Chair, DocBook Technical Committee | qualities which he does not
                                   | possess, and to gain applause
                                   | which he cannot keep.--Dr. Johnson
Luis Miguel Morillas | 13 Mar 2012 21:41
Picon
Gravatar

How can I include a google map in an html as an iframe

I want to include a google map in a docbook article. How can I include
it as an iframe in html version?

Regards,

-- luismiguel  ( <at> lmorillas)
David Cramer | 14 Mar 2012 05:18
Gravatar

Re: Re: How to Xinclude an Introduction in a chapter (ie, no <section>)?


On 3/13/12 2:30 PM, Norman Walsh wrote:
> "Bob Stayton" <bobs <at> sagehill.net> writes:
> 
>> <xi:include href="test-intro.xml"
>> xpointer="xpointer(/simplesect/*)" 
>> xmlns:xi="http://www.w3.org/2001/XInclude"/>
> 
> As time progresses, it may be that the xpath() scheme will become
> more widely available than the (never finished) xpointer() scheme.
> 
> Be seeing you, norm
> 

Hi Norm,
I'd love to read more about the xpath() scheme. Do you have links? I
tried googling, but found nothing that looked promising.

Thanks,
David
Jirka Kosek | 14 Mar 2012 08:11
Picon
Favicon
Gravatar

Re: How can I include a google map in an html as an iframe

On 13.3.2012 21:41, Luis Miguel Morillas wrote:
> I want to include a google map in a docbook article. How can I include
> it as an iframe in html version?

Quick hack would be to insert processing instruction in your document like

<?google-map?>

and then adding custom template into your customization layer which will
convert this PI into appropriate iframe:

<xsl:template match="processing-instruction('google-map')">
  <iframe ...>
    ...
  </iframe>
</xsl:template>

				Jirka

P.S. For questions related to processing it is better to use
docbook-apps mailing list.

--

-- 
------------------------------------------------------------------
  Jirka Kosek      e-mail: jirka <at> kosek.cz      http://xmlguru.cz
------------------------------------------------------------------
       Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
------------------------------------------------------------------
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
(Continue reading)

Brendan DeTracey | 19 Mar 2012 00:14
Picon

pdf/html element customization - line breaks

Hello,
 
I have been using the computeroutput element, but have a problem with line breaks in pdf when my line is too long. In html the user can resize the window to fit the entire line of text but pdf breaks the line clumsily. How do other authors deal with this issue?
 
Thanks,
Brendan
Bob Plantz | 19 Mar 2012 02:00
Picon

Re: pdf/html element customization - line breaks

On 3/18/2012 4:14 PM, Brendan DeTracey wrote:
Hello,
 
I have been using the computeroutput element, but have a problem with line breaks in pdf when my line is too long. In html the user can resize the window to fit the entire line of text but pdf breaks the line clumsily. How do other authors deal with this issue?
 
Thanks,
Brendan
That's the difference between pdf and html. With pdf you specify the presentation formats on the page. With html the reading device has a lot of control over the presentation in the window. Even the user has some control over an html presentation, but not with pdf.

My solution? I'm currently working on converting my textbook from LaTeX (to produce pdf) to ePub (html under the hood). The tools for the conversion are primitive, at best. Since it's a technical book (assembly language programming, etc.), I'm having to eliminate a lot of the nice formatting that LaTeX allows on the printed page. But students these days prefer electronic reading, even if it means dealing with the problems of pdf on portable devices.

--Bob

Xabier Bayon Garcia | 19 Mar 2012 09:23
Picon

ordered list in spanish format

Hello,


I have one question regarding ordered lists in spanish. 

When I generate pdf, epub, html the ordered lists appear this way:

1. First object
2. Second object
3. ...
...


In spanish the correct one must appear this way:

1) First object
2) Second object
3) ...


How could I get this list format??



Thanks in advance.


Xabier Bayon Garcia <xabierbayon <at> gmail.com>
Olivier Ishacian | 19 Mar 2012 10:32
Favicon

[ANN] Release of XMLmind XML Editor v5.2

XMLmind is happy to announce the version 5.2 of XMLmind XML Editor.
     _____________________________________________

XMLmind XML Editor Personal Edition v5.2 can be downloaded from
http://www.xmlmind.com/xmleditor/download.shtml

Professional Edition users, please upgrade using this form:
http://www.xmlmind.com/store/download.php

(The above form is usually accessed through
http://www.xmlmind.com/xmleditor/upgrade.html.)
     _____________________________________________

XMLmind XML Editor v5.2 (March 14, 2012):

Overhauled XHTML support, now including support for XHTML 5:

* Robust, self-contained, W3C XML Schema for XHTML 5 which
    is as faithful to W3C Working Draft 25 May 2011 as a
    W3C XML Schema can be.

* New CSS stylesheets.

    When the "Emulate Web Browser" stylesheet has been selected,
    XXE will dynamically apply to the styled view all the CSS
    styles found in style attributes, style elements and link
    elements pointing to CSS stylesheets.

* New XSLT 2 stylesheets allow to convert XHTML 1.0, 1.1
    and 5.0 documents to PostScript, PDF, RTF, WordprocessingML,
    Office Open XML (.docx) and OpenOffice (.odt).

    By default, the CSS styles specified in XHTML style attributes,
    style and link elements also apply to the XSL-FO file generated
    by these XSLT 2 stylesheets.
     _____________________________________________

More information:
http://www.xmlmind.com/xmleditor/changes.html
Brendan DeTracey | 19 Mar 2012 14:00
Picon

Re: pdf/html element customization - line breaks

I suppose I will manually backslash and linebreak for both html and pdf. I now see that others have had to do this (Appendix A ,example A-7 from Advanced Bash Scripting at Linux Documentation Project. Manual backslash in both html and pdf versions.)
 
Now if only I could stop pdf from line-breaking filename elements. Any help with this?
 
Thanks,
Brendan
----- Original Message -----
From: Bob Plantz
Sent: Sunday, March 18, 2012 10:00 PM
Subject: Re: [docbook] pdf/html element customization - line breaks

On 3/18/2012 4:14 PM, Brendan DeTracey wrote:
Hello,
 
I have been using the computeroutput element, but have a problem with line breaks in pdf when my line is too long. In html the user can resize the window to fit the entire line of text but pdf breaks the line clumsily. How do other authors deal with this issue?
 
Thanks,
Brendan
That's the difference between pdf and html. With pdf you specify the presentation formats on the page. With html the reading device has a lot of control over the presentation in the window. Even the user has some control over an html presentation, but not with pdf.

My solution? I'm currently working on converting my textbook from LaTeX (to produce pdf) to ePub (html under the hood). The tools for the conversion are primitive, at best. Since it's a technical book (assembly language programming, etc.), I'm having to eliminate a lot of the nice formatting that LaTeX allows on the printed page. But students these days prefer electronic reading, even if it means dealing with the problems of pdf on portable devices.

--Bob


Gmane