Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

xsl-Fo

Empfohlene Antworten

Veröffentlicht

Hallo,

ich versuch mir grad xsl-fo anzueignen und hab versucht ein Beispiel aus einem Buch auszuführen. Doch beim versuch ein pdf zu erstellen stoß ich immer wieder auf den gleichen Fehler! (fo:flow is missing child element) Ich benutze den Altova XML Editor mit FOP Apache 0.95

Hier meine Beiden Dateien

XML DATEI:

<?xml version="1.0" encoding="UTF-8"?>

<?xml-stylesheet type="text/xsl" href="test.xsl"?>

<!--Prozessoranweisung -->

<?xmlspyxslfo Output.xsl?>

<content xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

      <Text> Hallo Mond! 

     </Text>

</content>
Hier meine xsl Datei mit Fo Elementen:
<?xml version="1.0" encoding="UTF-8"?>

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">


<xsl:output encoding="ISO-8859-1" method="xml"/>

<!-- Startvorlage -->

<xsl:template match="/">

  <fo:root>

      <!-- Seitenvorlagen -->

			<fo:layout-master-set>

				<fo:simple-page-master master-name="alleine"> page-height="15cm" page-width="15cm">

					<fo:region-body region-name="xsl-region-body" margin="0.7cm"/>

				</fo:simple-page-master>

			</fo:layout-master-set>

			<!-- Das waren die allgemeinen Angaben für eine Seitenvorlage-->

			<!-- hier erfolgt der Aufruf der Seitenvorlage und die späteren Inhalte-->

			<fo:page-sequence master-reference="alleine">

				<fo:flow flow-name="xsl-region-body">

							<xsl:apply-templates select="Text"/>

				</fo:flow>

			</fo:page-sequence>	

		</fo:root>

	</xsl:template>	

	 <!-- Vorlage für Text -->

	 <xsl:template match="content">

					<fo:block>

							 <xsl:value-of select="Text"/>

			      </fo:block>

	</xsl:template>		

</xsl:stylesheet>

Wäre dankbar um jeden Tipp! komme momentan echt nicht weiter

hat sich erledigt! hatte mich vertippt gehabt!

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.