Subject: Re: [xsl] output content after <br> From: David Carlisle <davidc@xxxxxxxxx> Date: Tue, 28 May 2002 15:36:25 +0100 |
Thanks for your help. I tried <xsl:template match="content"> <xsl:value-of select="node()"/> <xsl:apply-templates/> </xsl:template> But it just seemed to add the first part of the content element twice; that's because you asked for it twice. Once with the value-of and once with the apply-templates. You just want <xsl:template match="content"> <xsl:apply-templates/> </xsl:template> <xsl:template match="break"> <br/> </xsl:template> but the first template is equivalent to the default behaviour so you do not need it at all and so the only thing you need is <xsl:template match="break"> <br/> </xsl:template> David _____________________________________________________________________ This message has been checked for all known viruses by Star Internet delivered through the MessageLabs Virus Scanning Service. For further information visit http://www.star.net.uk/stats.asp or alternatively call Star Internet for details on the Virus Scanning Service. XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] output content after <br>, Joerg Heinicke | Thread | Re: [xsl] output content after <br>, valerie liston |
RE: [xsl] Does saxon:output do an H, Mark Wonsil | Date | Re: [xsl] output content after <br>, Timothy Allen |
Month |