This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

about xalan 2.0.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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]