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.

XML nach CSV

Empfohlene Antworten

Veröffentlicht

Hi, Leute!

Gezwungener Maßen muss ich eine xml-Datei in eine CSV-Datei umwandeln. Ich hab bereits vieles im Netz gefunden, nur eine Kleinigkeit fehlt mir noch:

Zeilenschaltung nach der Überschrift bzw. nach den einzelnen Zeilen

mein XSL sieht so aus:

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

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

<xsl:strip-space elements="*" />

<xsl:output method="text" indent="no" encoding="utf-8" />

<xsl:template match="/">

<xsl:call-template name="Header" />

<xsl:apply-templates />

</xsl:template>

<xsl:template match="references">

<xsl:for-each select="document">

<xsl:apply-templates />

<xsl:text disable-output-escaping="yes"></xsl:text>

<xsl:text> </xsl:text>

</xsl:for-each>

</xsl:template>

<xsl:template match="attribute" name="Attribute">

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

<xsl:text>;</xsl:text>

</xsl:template>

<xsl:template match="transaction/document/configuration/attribute" name="Header">

<xsl:choose>

<xsl:when test="@name='Anzahl Referenzen'">Anzahl</xsl:when>

<xsl:when test="@name='Status'">xstatus</xsl:when>

<xsl:otherwise>

<xsl:value-of select="@name" />

</xsl:otherwise>

</xsl:choose>

<xsl:text>;</xsl:text>

</xsl:template>

</xsl:stylesheet>

Vielleicht kann mir jemand nen Tipp geben, wie ich nach dem Header-Template eine Zeilenschaltung bekomme, bzw. dann bei jedem "document".

Vielen Dank im Voraus.

  • 1 Monat später...

Hallo!

Dieses produziert ein Zeilenumbruch:

<xsl:text>

</xsl:text>

Gruß

ahbeckerde

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.