?|
|
Source code |
1 2 3 4 5 6 |
<?xml ... ?>
<base>
<adressen>
<adresse1/>
</adressen>
</base>
|
|
|
Source code |
1 2 3 4 5 6 7 |
[...]
<xsl:template match="adresse1">
Hans Muster
Musterstrasse 4
Stadt
</xsl:template>
[...]
|
|
|
Source code |
1 2 3 4 |
<?xml version="1.0" encoding="ISO-8859-1"?> <test> <bla /> </test> |
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format" exclude-result-prefixes="fo">
<xsl:output method="xml" version="1.0" omit-xml-declaration="no" indent="yes"/>
<!-- ========================= -->
<!-- root element: -->
<!-- ========================= -->
<xsl:template match="/">
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<!-- (1. Define the page margins) -->
<fo:layout-master-set>
<fo:simple-page-master master-name="simpleA4" page-height="29.7cm" page-width="21cm"
margin-top="2cm" margin-bottom="2cm" margin-left="2cm" margin-right="2cm">
<fo:region-body region-name="Content"/>
</fo:simple-page-master>
</fo:layout-master-set>
<!-- (2. For the page layout refer to the master layout)-->
<fo:page-sequence master-reference="simpleA4">
<fo:flow flow-name="Content">
<fo:block font-size="10pt" font-family="Courier">
<xsl:apply-templates select="//bla" />
</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>
</xsl:template>
<xsl:template match="//bla">
<fo:block>Hallo, XSL-FO Welt.</fo:block>
</xsl:template>
</xsl:stylesheet>
|
|
|
Source code |
1 2 3 4 5 6 7 8 9 |
<!-- XML-Datei -->
<base>
<fo:block>Das ist ein "<s>".</fo:block>
</base>
<!-- Stylesheet -->
<xsl:template match="s">
<xsl:text>Hallo Welt</xsl:text>
</xsl:template>
|
Forum Software: Burning Board® 3.1.6, developed by WoltLab® GmbH