xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andre Marthaler" <an...@m-zentrale.de>
Subject FOP: Linebreak Problem
Date Tue, 04 Jun 2002 14:58:45 GMT

i use FOP 0.20.3 under Linux and Win2k.

I have a Problem using XSL Templates.
i use an XML with an XSL File.

I want integrate a Link into a Text.
I formatting the "a" Tag, but he'S making a break before and after the "<a
href" Link.
I dont know how to disable this feature.

So the PDF is looking like this:

Lorem ipsum dolor sit amet, consetetur [
] sadipscing elitr.

He's making a break before and after "myLink".

Here are my XSL:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fo:root [
<!ENTITY nbsp "&#160;">
<xsl:stylesheet version="1.0"
	<xsl:template match="/">
		<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
				<fo:simple-page-master master-name="A4"
					page-width="210mm" page-height="297mm"
					margin-top="0.5cm" margin-bottom="0.5cm"
					margin-left="0cm" margin-right="0cm">
					<fo:region-before extent="3.8cm"/>
					<fo:region-body margin-top="3.7cm" margin-bottom="3cm"
margin-left="1cm" margin-right="1cm"/>
					<fo:region-after extent="2cm"/>

			<fo:page-sequence master-reference="A4" initial-page-number="1">
				<!-- Region Before -->
				<fo:static-content flow-name="xsl-region-before">
						<fo:external-graphic src="file:/bild1.jpg"/>
					<fo:table table-layout="fixed">
						<fo:table-column column-width="17cm"/>
									<fo:block margin-left="1cm" margin-right="1cm" color="#3C6EA0"
										font-family="sans-serif" font-weight="bold"

				<!-- Region After -->
				<fo:static-content flow-name="xsl-region-after">
						<fo:external-graphic src="file:/bild2.jpg"/>

				<!-- Region Body -->
				<fo:flow flow-name="xsl-region-body">
					<fo:table table-layout="fixed">
						<fo:table-column column-width="7cm"/>
						<fo:table-column column-width="10cm"/>
								<xsl:apply-templates select="page"/>

	<xsl:template match="a">
			<fo:basic-link external-destination="http://www.graffitiart.de"

	<xsl:template match="br">

	<xsl:template match="body/content/zelle_rechts">
			<xsl:apply-templates />

	<xsl:template match="page">
					<fo:external-graphic src="file:/bild1.jpg"/>
					<xsl:apply-templates select="body/content/zelle_rechts"/>
				<!--	<xsl:value-of select="body/content/zelle_rechts"/> -->



The XML to this:

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE content [
	<!ENTITY nbsp "&#0160;">
	<!ENTITY amp "&#38;">
	<body page="agentur">
		<!-- Anzeigen der Subnavigation -->
			<name>wir ├╝ber uns</name>
			<link url="/agentur/01">01</link>
			<link url="/agentur/02">02</link>
			<link url="/agentur/03">03</link>
				<img src="/gfx/pic_agentur_00.jpg" width="260" height="250"/>
				Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
voluptua. At vero eos et accusam et justo duo dolores et ea rebum.
				Duis autem vel eum iriure dolor [<a href="/agentur/03">myLink</a>] in
vulputate velit esse molestie consequat.


Sorry for so many Code, but Thx for your Help!!!! :-)

Andre Marthaler.

View raw message