xsl-list
[Top] [All Lists]

Xalan Uses which Parser

2004-04-19 01:46:51
Hi,
I want to Use Xalan for my XSLT implementation. According to
Xalan Documentation it uses Xerces Parser.  But it doesnt speak whether
xalan uses DOM parser or SAX Parser. Any information on this regard
would be helpful.

Best Regards,
Rakesh Bajpai
----- Original Message ----- 
From: "Roberta Granata" <robgranata(_at_)yahoo(_dot_)co(_dot_)uk>
To: <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
Sent: Monday, April 19, 2004 1:56 PM
Subject: RE: [xsl] how i can use 'table' in fo in differt way ?


I change my xslt code with the new instructions and 
it works good:

Thanks for the answers and the help,
Roberta



--- "Andreas L. Delmelle" <a_l(_dot_)delmelle(_at_)pandora(_dot_)be>
wrote: > > -----Original Message-----
From: Roberta Granata
[mailto:robgranata(_at_)yahoo(_dot_)co(_dot_)uk]


Hi,

i write a tool to convert a xml document in PDF
using
fo.

The problem is that when a use a 'table' in the
xsl
file , it forces me to indicate how many columns i
need to use and the width.


Strictly speaking, that is not true. The XSL-FO spec
leaves room for
something as 'auto table-layout'. The real problem
is that it's not exactly
a cake-walk to implement (--and Apache FOP, for
instance, doesn't)

In any case, to achieve the result you describe:

Say your table has two columns, then the cell
containing the Chapter names
should have number-columns-spanned="2"

Example code (XSLT)

<xsl:template match="ChapterHead">
  <fo:table-row>
    <fo:table-cell number-columns-spanned="2">
      <!-- content -->
    </fo:table-cell>
  </fo:table-row>
</xsl:template>

<xsl:template match="ChapterLine">
  <fo:table-row>
    <fo:table-cell>
      <!-- content -->
    </fo:table-cell>
    <fo:table-cell>
      <!-- content -->
    </fo:table-cell>
  </fo:table-row>
</xsl:template>


Hope this helps!

Cheers,

Andreas



--+------------------------------------------------------------------
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>
--+--
 





____________________________________________________________
Yahoo! Messenger - Communicate instantly..."Ping" 
your friends today! Download Messenger Now 
http://uk.messenger.yahoo.com/download/index.html

--+------------------------------------------------------------------
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>
--+--