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

about xalan 2.0.0

Subject: about xalan 2.0.0
From: "lpkhoo lpkhoo" <lpkhoo@xxxxxxxxxxxxxx>
Date: Fri, 22 Feb 2002 17:25:02 +0800
xalan 2.0
Hello,

I'm facing a problem to xalan where in my XML contains class attribute
(ref to below example) so when I using Xalan to convert the XML to XSL-FO
it will not show an result in my new FO.

Actually, I want to know whether in xalan 2.0.0 will ignore class attribute
or it do some process to the class attribute or in xalan 2.0.0 are using
other attribute to replace class attribute.

the purpose I want to know is because currently I needed to add-in the
css function to xml and produce fo by using xalan.

hopefully someone can help to me or given me some idea to solved my problem


Example:
in XML
=======
<html>
  <head>
    <title>Demonstration of using XSLT and an embedded CSS file.</title>
    <link rel="stylesheet" type="text/css" href="Layout1.css" />
  </head>

  <body>
    <h1>Employee Listing</h1>

    <table width="100%" border="1" cellpadding="0" cellspacing="0">
      <tr>
        <th class="TH">Employee Name</th>

        <th>Age</th>

        <th>Department</th>

        <th>Expert</th>
      </tr>

      <tr>
        <td>John Smith</td>

        <td>25</td>

        <td>Internet</td>

        <td>Visual Basic</td>
      </tr>
    </table>
  </body>
</html>

in CSS class
=============
<?xml version='1.0' encoding='utf-8' ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template name="Layout1">
	<STYLE>
		H1 {COLOR: red; FONT-FAMILY: Arial; FONT-SIZE: 14pt;}
		H2 {COLOR: darkblue; FONT-FAMILY: Arial; FONT-SIZE: 12pt;}
	.subhead {COLOR: darkblue; FONT-FAMILY: Arial; FONT-SIZE: 12pt;}
	.text {COLOR: black; FONT-FAMILY: Arial; FONT-SIZE: 12pt;}
		TH {COLOR: white; FONT-FAMILY: Arial; background-color:
darkblue;}
		TD {COLOR: blue; FONT-FAMILY: Arial}
		TR { background-color: beige; }
		BODY { background-color: beige; }
	</STYLE>
</xsl:template>
</xsl:stylesheet>

Output (in FO)
==============
.
.
.
<fo:block>
    <fo:block font-family="Helvetica" font-size="24pt">
<fo:inline text-align="start">Employee Listing</fo:inline>
</fo:block>

    <fo:table xmlns:table="CorePDF_bXsltTable" border-width="0.075pt"
border-style="solid" border-color="#000000">
<fo:table-column column-width="140.5pt"/>
<fo:table-column column-width="140.5pt"/>
<fo:table-column column-width="140.5pt"/>
<fo:table-column column-width="140.5pt"/>
<fo:table-body>
      <fo:table-row>
        <fo:table-cell number-columns-spanned="1" number-rows-spanned="1"
border-width="0.025pt" border-style="solid" border-color="#000000" display-align="center">
<fo:block end-indent="0.05pt" start-indent="0.05pt" space-after="1pt"
space-before="1pt" text-align="start">Employee Name</fo:block>
</fo:table-cell>

        <fo:table-cell number-columns-spanned="1" number-rows-spanned="1"
border-width="0.025pt" border-style="solid" border-color="#000000" display-align="center">
<fo:block end-indent="0.05pt" start-indent="0.05pt" space-after="1pt"
space-before="1pt" text-align="start">Age</fo:block>
</fo:table-cell>
.
.
.


thank you.

lpkhoo

___________________________________________________________________
Free Email - go to http://www.maxis.net.my/


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


Current Thread

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.