Subject: [xsl] Can't get output from xml -> text transformation From: "Todd Alexander" <heeznow@xxxxxxx> Date: Wed, 11 Aug 2004 10:53:23 -0700 |
I have an xsl I'm running through xalan against an xml file, with the output going to a csv file. My problem is that I get the output expected for the first template rule in the csv file but I canot get anything output for the second. I'm getting blank spaces for each node I'm expecting to hit for the second rule, so I know I'm getting there, but no matter what I put inside the rule (xsl:text , xsl:value- of etc) I cannot get any text of any kind.
<?xml version="1.0"?> <allGamesDownloadable> <featuredGameList title="Featured Downloads"> <featuredGame featuredHeadline="blah blah blah" gameId="gameOne"> </featuredGameList> <gameGroupList> <gameGroup title="Action Games"> <gameItem gameID="gameOne"/> <gameItem gameID="gameTwo"/> </gameGroup> <gameGroup title="Arcade"> <gameItem gameID="gameThree"/> <gameItem gameID="gameFour"/> </gameGroup> </gameGroupList> </allGamesDownloadable>
The XSL in question is: <?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="text" />
<xsl:template match="/"> <xsl:text> GAMEID,GAMENAME </xsl:text> <xsl:apply-templates/> </xsl:template>
<xsl:template match="gameItem"> <!-- for debugging --> <xsl:text>cracker</xsl:text> </xsl:template>
Thanks, Todd Alexander heeznow@xxxxxxx
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Match on Element Value?, David Carlisle | Thread | RE: [xsl] Can't get output from xml, Michael Kay |
Re: [xsl] pathDeterminationByGlobal, mankar | Date | RE: [xsl] Can't get output from xml, Michael Kay |
Month |