Also ich habe es jetzt probiert, aber leider ohne Erfolg :-(
Ich habe drei Formulare in choose.xsl
<form action="show_contacts.xsql">
<input type="hidden" name="show" value="alle" />
<input type="submit" value=" Alle Kontakte anzeigen " />
</form>
<form action="show_contacts.xsql">
<select name="firma" size="1" style="width:250px;">
<xsl:for-each select="auswahl_firmen/row">
<option>
<xsl:attribute name="value">
<xsl:value-of select="id_firma"/>
</xsl:attribute>
<xsl:value-of select="firmenname"/>
</option>
</xsl:for-each>
</select>
<input type="submit" value=" Weiter " style="margin-top:5px;" />
</form>
und
<form action="show_contacts.xsql">
<select name="firma" size="1" style="width:250px;">
<xsl:for-each select="auswahl_personen/row">
<option>
<xsl:attribute name="value">
<xsl:value-of select="id_mitarbeiter"/>
</xsl:attribute>
<xsl:value-of select="vorname"/>, <xsl:value-of select="name"/>
</option>
</xsl:for-each>
</select>
<input type="submit" value=" Weiter " style="margin-top:5px;" />
</form>
In show_contacts.xsl steht:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!-- Root template -->
<xsl:param name="show" />
<xsl:param name="firma" />
<xsl:param name="person" />
<xsl:template match="/">
...<xsl:apply-templates />...
</xsl:template>
<xsl:template match="page">
...
xsl:choose
<xsl:when test="$show = 'alle'">
Alle
</xsl:when>
<xsl:when test="$firma != ''">
<xsl:value-of select="$firma" />
</xsl:when>
<xsl:when test="$person != ''">
<xsl:value-of select="$person" />
</xsl:when>
xsl:otherwise
Nix
</xsl:otherwise>
</xsl:choose>
...
</xsl:template>
</xsl:stylesheet>
Egal welches Formular ich wähle, ich habe zwar eine URL vom Typ [...]show_contacts.xsql?person=3, doch ausgegeben wird immer nur "Nix".
Wenn ich testweise in show_contacts.xsl am Anfang <xsl:param name="firma" select="'2'"/> schreibe, dann wird auch 2 ausgegeben.
Was ich also nur noch wissen muss ist, wie die Attribute den Wert aus der URL bekommen ;-)
Ich hoffe, noch Hilfe zu bekommen :-)
Vielen Dank schon einmal
Sven