ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzahh_5.4.0.1/realestatexsl.htm

81 lines
3.8 KiB
HTML
Raw Permalink Normal View History

2024-04-02 14:02:31 +00:00
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-us" xml:lang="en-us">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="security" content="public" />
<meta name="Robots" content="index,follow" />
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
<meta name="DC.Type" content="reference" />
<meta name="DC.Title" content="Example: XSLReportProcessor sample XSL file" />
<meta name="abstract" content="" />
<meta name="description" content="" />
<meta name="copyright" content="(C) Copyright IBM Corporation 2006" />
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 2006" />
<meta name="DC.Format" content="XHTML" />
<meta name="DC.Identifier" content="realestatexsl" />
<meta name="DC.Language" content="en-us" />
<!-- All rights reserved. Licensed Materials Property of IBM -->
<!-- US Government Users Restricted Rights -->
<!-- Use, duplication or disclosure restricted by -->
<!-- GSA ADP Schedule Contract with IBM Corp. -->
<link rel="stylesheet" type="text/css" href="./ibmdita.css" />
<link rel="stylesheet" type="text/css" href="./ic.css" />
<title>Example: XSLReportProcessor sample XSL file</title>
</head>
<body id="realestatexsl"><a name="realestatexsl"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Example: XSLReportProcessor sample XSL file</h1>
<div><p></p>
<div class="section"><div class="note"><span class="notetitle">Note:</span> Read the <a href="codedisclaimer.htm#codedisclaimer">Code
example disclaimer</a> for important legal information.</div>
</div>
<div class="section"><div class="p"><pre>&lt;?xml version="1.0"?&gt;
&lt;!-- Sample of styling an imagined real estate document. --&gt;
&lt;xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format" &gt;
&lt;xsl:template match="RESIDENTIAL-LISTINGS"&gt;
&lt;fo:root&gt;
&lt;fo:layout-master-set&gt;
&lt;fo:simple-page-master master-name="theMaster"&gt;
&lt;fo:region-body region-name="theRegion"/&gt;
&lt;/fo:simple-page-master&gt;
&lt;fo:page-sequence-master master-name="theMaster"&gt;
&lt;fo:single-page-master-reference master-name="thePage" /&gt;
&lt;/fo:page-sequence-master&gt;
&lt;/fo:layout-master-set&gt;
&lt;fo:page-sequence master-name="theMaster"&gt;
&lt;fo:flow flow-name="theRegion"&gt;
&lt;xsl:apply-templates/&gt;
&lt;/fo:flow&gt;
&lt;/fo:page-sequence&gt;
&lt;/fo:root&gt;
&lt;/xsl:template&gt;
&lt;xsl:template match="RESIDENTIAL-LISTING"&gt;
&lt;fo:block font-family="Times New Roman" font-weight="normal" font-size="24pt"
background-color="silver" padding-before="5px" padding-after="5px"
padding-start="5px" padding-end="5px" border-before-style="solid"
border-before-color="blue" border-after-style="solid" border-after-color="blue"
border-start-style="solid" border-start-color="blue" border-end-style="solid"
border-end-color="blue"&gt;
&lt;fo:character character="y" background-color="blue" border-before-style="solid"
border-before-color="yellow" border-after-style="solid" border-after-color="yellow"
border-start-style="solid" border-start-color="yellow" border-end-style="solid"
border-end-color="yellow" /&gt;
&lt;/fo:block&gt;
&lt;/xsl:template&gt;
&lt;/xsl:stylesheet&gt;</pre>
</div>
</div>
</div>
</body>
</html>