Subject: Re: [xsl] Making an FAQ page from XML From: John Steel <john.steel@xxxxxxxxxxxxxxx> Date: Sun, 11 Feb 2007 23:01:39 +0000 |
John Steel wrote:Thank you! That is excellent, but I have tried to wire it into my main template and it either doesn't copy the rest of the content or duplicates it. My only apply-templates line has select='node()|@*' and seems to insist on it. Could you see exactly what I need please? I'm trying stuff along these lines etc:Hi,You want to use modes.
...
How can I set up some kind of "toggle" to say parse again but just for the 'a' nodes please? Thanks very much in advance.
You can have multiple matches if you use a mode. Eg:
<xsl:apply-templates select="faq" mode="question"/> <xsl:apply-templates select="faq" mode="answer"/>
...
<xsl:template match="faq" mode="question"> ...Question processing... </xsl:template>
<xsl:template match="faq" mode="answer"> ...Answer processing... </xsl:template
-- -------------------------- http://www.phonewebcam.com john.steel@xxxxxxxxxxxxxxx
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Making an FAQ page from X, Kamal Bhatt | Thread | Re: [xsl] Making an FAQ page from X, Kamal Bhatt |
Re: [xsl] how to test previous node, Abel Braaksma | Date | [xsl] Optimisation -- premature?, John Horner |
Month |