|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
XSL params
Hi people...
I'm trying to pass parameters to my XSL sheet. This is a part of my code: PHP Code:
the XML is someting like that <USER> <ID>1</ID> </USER> ... <USER> <ID>2</ID> </USER> and this is a part of the XSL where I need refer the parameter: <xsl:template match="USER"> <xsl:variable name="uid"><xsl:value-of select="ID" /></xsl:variable> <TR> <TD><xsl:value-of select="id{$uid}" /></TD> </TR> </xsl:template> But nothig is shown ![]() What's wrong? Thanks in advance...
__________________
-DdC |
|
#2
|
|||
|
|||
|
Didn't look through the php code, but <xsl:template match="USER"> won't match anything. It needs to be <xsl:template match="/USER">
Also, Code:
<xsl:value-of select="id{$uid}" />
Code:
<xsl:value-of select="$uid" /> |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > XML Programming > XSL params |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|