
January 19th, 2004, 08:50 PM
|
|
Junior Member
|
|
Join Date: Jan 2004
Posts: 4
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
i found that this works to a degree, i am not sure how to make it co exist with he classic ...
<xsl:template match="/">
... to render the rest of my document
PHP Code:
<xsl:stylesheet>
<xsl:template match="*/box">
<table>
<xsl:for-each select="//rows">
<tr>
<xsl:for-each select="cell">
<td><xsl:value-of select="."/></td>
</xsl:for-each>
</tr>
</xsl:for-each>
</table>
<hr/>
</xsl:template>
</xsl:stylesheet>
<root>
<titlebar>
<item></item>
<box type="1">
<rows>
<cell>1</cell><cell>2</cell>
</rows>
<rows>
<cell>3</cell><cell>4</cell>
</rows>
</box>
<item></item>
</titlebar>
<box type="2">
<rows>
<cell>5</cell><cell>6</cell>
</rows>
<rows>
<cell>7</cell><cell>8</cell>
</rows>
</box>
</root>
|