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
b...@sagehill.net


  ----- Original Message ----- 
  From: redlettucemail 
  To: docbook-apps@lists.oasis-open.org 
  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

Reply via email to