Re: [xsl] xsl list item writes over the label?

Subject: Re: [xsl] xsl list item writes over the label?
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Thu, 31 Mar 2005 17:47:28 -0500

If you're trying to run this through an XSL formatter I'm not surprised if it's not working right; in fact I am surprised if it's working at all.

The XSL-FO code you've pasted isn't conformant. Mainly, here you have a series of FO elements one after another, when to be conformant FO they'd be nested, as in:

<fo:flow flow-name="xsl-region-body">


<fo:flow flow-name="xsl-region-body"/>


Also the stylesheet designates an HTML output method -- not right for FO, and could muck things up.

So lots of things aren't right about this. You need to step back, figure out what FO you really need, and figure out how to generate it.


At 04:25 PM 3/31/2005, you wrote:
I am trying to use a list and the list-item is writing
over the list-label.  Any ideas?

<?xml version='1.0' encoding='UTF-8'?>
<xsl:stylesheet version="1.0"
<xsl:output method="html" encoding="ASCII"/>

 <xsl:template match="/">
        <fo:simple-page-master margin-right="2.5cm"
margin-left="2.5cm" margin-bottom="2cm"
margin-top="1cm" page-width="21cm"
page-height="29.7cm" master-name="mailer"/>
        <fo:region-body margin-top="3cm"/>
        <fo:region-before extent="3cm"/>
        <fo:region-after extent="1.5cm"/>
        <fo:page-sequence master-reference="mailer"/>
        <fo:flow flow-name="xsl-region-body"/>

Wendell Piez                            mailto:wapiez@xxxxxxxxxxxxxxxx
Mulberry Technologies, Inc.      
17 West Jefferson Street                    Direct Phone: 301/315-9635
Suite 207                                          Phone: 301/315-9631
Rockville, MD  20850                                 Fax: 301/315-8285
  Mulberry Technologies: A Consultancy Specializing in SGML and XML

Current Thread