OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: Re: [docbook] Blank Spaces in HTML


If I understand correctly, then the answer is 
"almost." ;)

You need to insert the HTML p element 
during the conversion. 

Are you using xsl to do the conversion into 
HTML? If you have a template that matches 
one of the lines that needs to have an extra 
space following, output the p element at 
the end of that template. If you're using the 
DocBook XSL stylesheets, you need to 
add your template for those special 

There's a lot of good xsl information at Dave 
Pawson's FAQ page, 

I suggest for this problem you look specifically at 

Look around the FAQ for info on outputting 
the content of your p element as well. I think 
you might  need something like 
<p> </p>, or use the 
xsl:element tag.

I have an error in my earlier post; the 
 is a carriage return, not a 
line feed. LF == 

And this isn't really a DocBook question. It
may be a DocBook-XSL question, but I think 
that has its own list.



07/10/2003 05:49 PM

        To:     docbook@lists.oasis-open.org
        Subject:        Re: [docbook] Blank Spaces in HTML

I'm converting my XML into HTML Help. But on certain topics, I want extra
space between certain lines. But from what you're saying, it sounds like 
I insert <para>&nbsp</para> into my xml document, that that will do the
trick. Can it be that simple?

                      census.gov               To: 
                      07/10/2003 03:44         Subject:  Re: [docbook] 
Blank Spaces in HTML  

You know how in HTML you can use <p>&nbsp</p> to add a space between lines
of text? Is there any way to do this in XML?




In XML, there really isn't a "blank line" because XML by itself is usually
a presentation format. As it's used in DocBook, it's content, not

With that disclaimer out of the way, if you're generating XSL-FO to create
a PDF,
you can insert a line break with the Unicode &#xD;

If you're generating HTML you can insert the very text you cited for a
blank line.

What exactly are you trying to do with the XML that makes you want a blank
line? Knowing that might make it easier to help.


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]