Josh,
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:block>...</fo:block>
...
</fo:flow>
not
<fo:flow flow-name="xsl-region-body"/>
<fo:block/>
etc.
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.
Cheers,
Wendell
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"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format"
exclude-result-prefixes="fo">
<xsl:output method="html" encoding="ASCII"/>
<xsl:template match="/">
<fo:root
xmlns:fo="http://www.w3.org/1999/XSL/Format"/>
<fo:layout-master-set/>
<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"/>
<fo:list-block/>
<fo:list-item/>
<fo:list-item-label/>
<fo:block/>*
<fo:list-item-body/>
<fo:block/>Volvo
<fo:list-item/>
<fo:list-item-label/>
<fo:block/>*
<fo:list-item-body/>
<fo:block/>Saab
</xsl:template>
======================================================================
Wendell Piez
mailto:wapiez(_at_)mulberrytech(_dot_)com
Mulberry Technologies, Inc. http://www.mulberrytech.com
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
======================================================================
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--