[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook] Blank Spaces in HTML
JB, 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 cases. There's a lot of good xsl information at Dave Pawson's FAQ page, http://www.dpawson.co.uk/xsl/xslfaq.html. I suggest for this problem you look specifically at http://www.dpawson.co.uk/xsl/sect2/N8321.html#d8446e345 Look around the FAQ for info on outputting the content of your p element as well. I think you might need something like <p>&nbsp;</p>, or use the xsl:element tag. I have an error in my earlier post; the Unicode 
 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. HTH, Joe JABakken@dstsystems.com 07/10/2003 05:49 PM To: docbook@lists.oasis-open.org cc: 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 if I insert <para> </para> into my xml document, that that will do the trick. Can it be that simple? joseph.a.gilvary@ census.gov To: docbook@lists.oasis-open.org cc: 07/10/2003 03:44 Subject: Re: [docbook] Blank Spaces in HTML PM You know how in HTML you can use <p> </p> to add a space between lines of text? Is there any way to do this in XML? Thanks. JB JB, In XML, there really isn't a "blank line" because XML by itself is usually not a presentation format. As it's used in DocBook, it's content, not presentation. 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 
 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. Joe
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]