Bonjour, J'ai un probleme de XML namespace. Ce me semble stupide, mais je suis pourtant bloque! Je crois comprendre qu'il est impossible de manipuler un node en XSL tant que son namespace n'a pas ete resolu. Ce qui ne m'est jamais arrive jusqu'ici avec Cocoon en n'utilisant pas de donnees exterieures. Je ne vois pas du tout ce que je dois faire quand je me retrouve avec un namespace inconnu. Dois-je l'ajouter dans WEB-INF/entity/catalog ? Je ne souhaite pourtant pas valider mon document.
Ci-dessous mon example (je ne trouve pas d'erreur, mais je suis incapable de manipuler ce document en XSL de facon "habituelle"): Merci! Phil __________________________________________________________________ La yahoo local API me fournit ce schemas http://api.local.yahoo.com/LocalSearchService/V1/LocalSearchRepsonse.xsd <http://api.local.yahoo.com/LocalSearchService/V1/LocalSearchResponse.xsd> et ce document online : <?xml version="1.0" encoding="UTF-8"?> <ResultSet xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:yahoo:lcl" xsi:schemaLocation="urn:yahoo:lcl http://api.local.yahoo.com/LocalSearchService/V1/LocalSearchResponse.xsd" totalResultsAvailable="40" totalResultsReturned="2" firstResultPosition="1"> <ResultSetMapUrl>http://local.yahoo.com/mapview?stx=pizza&csz=Palo+Alto%2C+CA&city=Palo+Alto&state=CA&radius=2.5257046222687&ed=BVD56a131DxIV6V7_5O_wO8KQY1.bxtOAd8qew--</ResultSetMapUrl> <Result> <Title>Round Table Pizza Palo Alto</Title>.... </Result> </ResultSet> Ma sitemap: <map:match pattern="yahoo"> <map:generate src="http://api.local.yahoo.com/LocalSearchService/V1/localSearch?appid=YahooDemo&query=pizza&zip=94306&results=2"/> <map:transform src="yahoo.xsl"/> <map:serialize type="xhtml"/> </map:match> Ma XSL: <?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <xsl:template match="/"> <html> <head> </head> <body> <div><xsl:apply-templates select="//ResultSet"/></div> </body> </html> </xsl:template> </xsl:stylesheet> --------------------------------------------------------------------- Liste francophone Apache Cocoon -- http://cocoon.apache.org/fr/ Pour vous desinscrire : mailto:[EMAIL PROTECTED] Autres commandes : mailto:[EMAIL PROTECTED]
