Holge r: XML to CSV

Beitrag lesen

Hallo,

xsl:choose verwendem?

ohne die kopfzeile hier ein beispiel wie es gehen könnte

<xsl:for-each select="//POI">
            xsl:choose
                <xsl:when test="@Sprache">
                    <xsl:value-of select="@Sprache"/>
                    <!-- test if child exist -->
                    <xsl:if test="*">
                        <xsl:value-of select="$Trenner"/>
                    </xsl:if>
                </xsl:when>
                xsl:otherwise
                    <xsl:if test="*">
                        <xsl:value-of select="$Trenner"/>
                    </xsl:if>
                </xsl:otherwise>
            </xsl:choose>
            <xsl:for-each select="*">
                <xsl:value-of select="."/>
                <xsl:if test="not(position() = last())">
                    <xsl:value-of select="$Trenner"/>
                </xsl:if>
            </xsl:for-each>
        </xsl:for-each>