Subject: Re: [xsl] XSL:FO From: "Christopher R. Maden" <crism@xxxxxxxxx> Date: Wed, 30 Jan 2002 18:12:43 -0800 |
-----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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] XSL:FO, Khalid | Thread | [xsl] Tracking Interelationships, P, gary cor |
Re: [xsl] Javascript inside XSL(Jus, Robert Koberg | Date | [xsl] A community project, Adam van den Hoven |
Month |