Subject: [xsl] "apply-templates" doesn't work for novice From: Greg Martel <gregm@xxxxxxxxxxx> Date: Thu, 27 Sep 2001 17:12:32 -0500 |
<Notebook> <List> <Cell> <CellGroupData> <List> <Cell> <String>This is a Title</String> <Style> <String>Title</String> </Style> </Cell> </List> </CellGroupData> </Cell> <List> <Options> <Option> <Symbol>FrontEndVersion</Symbol> <String>4.1 for Microsoft Windows</String> </Option> </Options> </Notebook>
<xsl:template match="Notebook"> <xsl:apply-templates select="List/*"/> </xsl:template>
<!--Cell Group Level--> <xsl:template match="CellGroupData"> <xsl:apply-templates select="List"/> </xsl:template>
<xsl:template match="Cell/String"> <xsl:value-of select="String"/> </xsl:template>
"<xsl:template match="Cell/Style[String='Title']"> @Title:<xsl:value-of select="../String"/></xsl:template>"
"<xsl:template match="Cell/Style[String='Title']"> @Title:<xsl:apply-templates select="../String"/></xsl:template>
-- Greg Martel
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Position X Sort-> Please , Wendell Piez | Thread | Re: [xsl] "apply-templates" doesn't, Wendell Piez |
Re: [xsl] Position X Sort-> Thanks!, Paulo Henrique S. Be | Date | [xsl] ancestor question, Amy Kaizerman |
Month |