Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <xsl:stylesheet
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:functx="http://www.functx.com"
- xmlns:xs="http://www.w3.org/2001/XMLSchema"
- version="2.0">
- <xsl:output method="xml" indent="yes" />
- <xsl:template match="/">
- <xsl:apply-templates select="legi32/utas" />
- </xsl:template>
- <xsl:template match="utas[@element-type='recordset']">
- <table>
- <tr>
- <th>Név</th>
- <th>Születés</th>
- </tr>
- <xsl:apply-templates />
- </table>
- </xsl:template>
- <xsl:template match="utas[@element-type='recordset']/record">
- <tr>
- <xsl:apply-templates select="nev" />
- <xsl:apply-templates select="szuletes" />
- </tr>
- </xsl:template>
- <!-- process an empty field -->
- <xsl:template match="record/*[@is-null='True']" priority="0.8">
- <td/>
- </xsl:template>
- <!-- process a non-empty field -->
- <xsl:template match="record/*" priority="0.4">
- <td>
- <xsl:value-of select="." />
- </td>
- </xsl:template>
- </xsl:stylesheet>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement