Subject: RE: [xsl] template match for subelement throughout tree From: "bix xslt" <bix_xslt@xxxxxxxxxxx> Date: Thu, 10 Apr 2003 23:37:00 +0000 |
From: "Kathy Burke" <Kathy_Burke@xxxxxxxxx>
Thanks, Ken. I thought using "//para" matched ALL occurrences in the doc?
<xsl:template match="para"> <p><xsl:apply-templates/></p> </xsl:template>
The following works fine on MSXML4: XML: <para>This is a sample paragraph</para>
XSL: <x:stylesheet version="1.0" xmlns:x="http://www.w3.org/1999/XSL/Transform"> <x:output method="html" indent="yes"/> <x:template match="/"> <x:apply-templates select="//para"/> </x:template> <x:template match="para"> <p><x:apply-templates/></p> </x:template> </x:stylesheet>
Output: <p>This is a sample paragraph</p>
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] template match for subele, Kathy Burke | Thread | RE: [xsl] template match for subele, Ross Ken |
RE: [xsl] template match for subele, Kathy Burke | Date | RE: [xsl] String manipulations with, David Carlisle |
Month |