81 lines
3.8 KiB
HTML
81 lines
3.8 KiB
HTML
|
<?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><?xml version="1.0"?>
|
||
|
|
||
|
<!-- Sample of styling an imagined real estate document. -->
|
||
|
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||
|
xmlns:fo="http://www.w3.org/1999/XSL/Format" >
|
||
|
|
||
|
<xsl:template match="RESIDENTIAL-LISTINGS">
|
||
|
<fo:root>
|
||
|
<fo:layout-master-set>
|
||
|
<fo:simple-page-master master-name="theMaster">
|
||
|
<fo:region-body region-name="theRegion"/>
|
||
|
</fo:simple-page-master>
|
||
|
<fo:page-sequence-master master-name="theMaster">
|
||
|
<fo:single-page-master-reference master-name="thePage" />
|
||
|
</fo:page-sequence-master>
|
||
|
</fo:layout-master-set>
|
||
|
<fo:page-sequence master-name="theMaster">
|
||
|
<fo:flow flow-name="theRegion">
|
||
|
<xsl:apply-templates/>
|
||
|
</fo:flow>
|
||
|
</fo:page-sequence>
|
||
|
</fo:root>
|
||
|
</xsl:template>
|
||
|
<xsl:template match="RESIDENTIAL-LISTING">
|
||
|
|
||
|
|
||
|
<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">
|
||
|
|
||
|
<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" />
|
||
|
</fo:block>
|
||
|
|
||
|
|
||
|
</xsl:template>
|
||
|
</xsl:stylesheet></pre>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
</body>
|
||
|
</html>
|