Next in thread → Next in month →

Re: [docbook-apps] listitem/para output in XHTML

From
Bob Stayton <>
Date
2010-12-13T17:07:47+00:00
ID
006c01cb9ae8$3c11f0d0$6600a8c0@pazu
Thread
Re: [docbook-apps] listitem/para output in XHTML
X-NONE
  X-NONE
  
   
   
   
   
   
   
   
   
   
   
   
  
  MicrosoftInternetExplorer4
  
   
   
   
   
   
   
   
   
   
   
   
  

Hi Dave,

The extra space is an artifact of some browsers, 
not all.  It should not appear in that context.  That said 
...

 

The <p> tag is coming from the <para> 
element inside the listitem.  Actually, the first para in the 
listitem.  This template customization would remove the p 
wrapper:

 

<xsl:template 
match="listitem/*[1][self::para]">
  
<xsl:apply-templates/>
</xsl:template>

I suspect you might also accomplish the formatting 
change with CSS, although I'm not clear how.

 

Bob Stayton
Sagehill Enterprises


 

 

  
----- Original Message ----- 

  
From: 
  redlettucemail 

  
To:  
  

  
Sent: Monday, December 13, 2010 3:03 
  AM

  
Subject: [docbook-apps] listitem/para 
  output in XHTML

  

  

  
For orderedlist and itemizedlist 
  elements, I need to remove the <p> tag that is generated after 
  <li> and <ul> in XHTML files. Currently, the <p> tag forces 
  text that occurs in a listitem to be placed on the next line after the bullet 
  point. Is there something I can change in the code for xsl:template match="d:itemizedlist/d:listitem 
  ?

  

  
 
Dave 
  Gardiner
Next in thread → Next in month →