Kód: Vybrat vše
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output indent="yes"/>
<xsl:template match="/KATALOG">
<xsl:for-each select="KATEGORIE">
<xsl:choose>
<xsl:when test="(NAZEV[contains(.,'Turistika - outdoor - camping')])">
<sort>1</sort>
</xsl:when>
<xsl:otherwise/>
</xsl:choose>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
<sort>1</sort>
On totiž bere sort jako že chci něco seřadit a ne jen zapsat, neví si s tím někdo poradit?
Zkoušel jsem entity < a > ale to není ono.
A druhý problémek je, že mám nejaký element, třeba:
Kód: Vybrat vše
<popis>kolo červené 85 kg</popis>Děkuju moc za každý nápad.
