xslt einfaches problem

Ntti

Mitglied
Ich möchte für dieses xml file "http://webservices.amazon.de/onca/xml?Service=AWSECommerceService&AWSAccessKeyId=1YF4X1H5F63BR2&Operation=ItemSearch&SearchIndex=Books&Power=keywords:hund&ResponseGroup=Small"]http://webservices.amazon.de/onca/xml?Service=AWSECommerceService&AWSAccessKeyId=&Operation=ItemSearch&SearchIndex=Books&Power=keywords:hund&ResponseGroup=Small
ein xslt stylesheet machen, meine templates matchen aber irgendwie keine Knoten, kann nur auf Attribute zugreifen ... habe hier ein einfaches beispiel was nicht geht
Kann mir bitte jemand helfen?

Code:
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="xml" indent="yes"/>
    <xsl:template match="/">
      <html>
                <title>
                    Test
                </title>
        <body>
               <xsl:apply-templates select="//ItemSearchResponse" ></xsl:apply-templates>
        </body>
      </html>
    </xsl:template>
    <xsl:template match="//ItemSearchResponse">
      <xsl:text> ja </xsl:text>
    </xsl:template>
    </xsl:stylesheet>
 
Zuletzt bearbeitet:
Zurück