[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: XSL:FO

Subject: Re: XSL:FO
From: "Christopher R. Maden" <crism@xxxxxxxxx>
Date: Wed, 30 Jan 2002 18:12:43 -0800
fo inline font weight bold
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

At 08:57 30-01-2002, Khalid wrote:
>I am just beginning to read about it.Can some one please let me know that if
>we can import css file for xsl:fo file.because I notices that xsl:fo uses css
>but inline commands as compare to a separate css file.If its possible then how
>do we do it?

You could convert CSS to XSL, in theory.

>say in html we do style by tag name for e.g
>table{sssss}
>td{ssssssss} etc,where as in xsl:fo we have elements like
><fo:table>
><fo:table-column>
><fo:table-row>
><fo:table-cell>

table{sssss} means that for the element <table> *in your source*, apply CSS 
formatting "sssss".  The equivalent statement in XSL would be:

<xsl:template match="table">sssss</xsl:template>

The formatting elements you list (<fo:table> etc.) would be results:

<xsl:template match="employees">
   <fo:table>
     <xsl:apply-templates/>
   </fo:table>
</xsl:template>

As a simpler example, in CSS, if I want <name>s to be bold, I'll do this:

name { display: inline;
        font-weight: bold; }

In XSL, it's

<xsl:template match="name">
   <fo:inline font-weight="bold">
     <xsl:apply-templates/>
   </fo:inline>
</xsl:template>

~Chris
- -- 
Christopher R. Maden, Principal Consultant, HMM Consulting Int'l, Inc.
DTDs/schemas - conversion - ebooks - publishing - Web - B2B - training
<URL: http://www.hmmci.com/ > <URL: http://crism.maden.org/consulting/ >
PGP Fingerprint: BBA6 4085 DED0 E176 D6D4  5DFC AC52 F825 AFEC 58DA
-----BEGIN PGP SIGNATURE-----
Version: PGP Personal Privacy 6.5.8

iQA/AwUBPFioG6xS+CWv7FjaEQJDJwCbB5jQVh03OMOHASEqSskQIlJqua0AoJWr
9pD+wEXMRDce+KGSVpS+v7Mz
=8kZd
-----END PGP SIGNATURE-----


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread
  • XSL:FO
    • Khalid - Wed, 30 Jan 2002 11:55:32 -0500 (EST)
      • Christopher R. Maden - Wed, 30 Jan 2002 21:11:58 -0500 (EST) <=

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.