
December 18th, 2003, 05:27 PM
|
 |
Junior Member
|
|
Join Date: Dec 2003
Location: Brasil
Posts: 3
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
question about XSL document() function and PHP
Hello,
I´m developing a website which uses PHp, Sablotron and mysql, with PHP creating xml files which will be parsed by Sablotron and then presented to the user.
Code excerpt:
Code:
<xsl:template match="//platform[@model='ps2']"
<xsl:for-each select="document('get_games:ps2')/games">
<xsl:apply-templates />
</xsl:for-each>
</xsl:template>
<xsl:template match="//games">
<xsl:apply-templates select="game" />
</xsl:template>
<xsl:template match="game">
<xsl:choose>
<xsl:when test="../../@mode = 'ps2'">Playstation 2 game</xsl:when>
</xsl:choose>
</xsl:template>
and finally my question is:
Inside a <xsl:for-each> when using a document(), being processed by PHP, how can i get a reference to an attribute/node which belongs to the "platform" node-set???
I´m not sure if this is the right forum to post this question, so i have posted here and in PHP forum.
Thanks in advance,
|