Subject: RE: [xsl] updated namespace difficulty From: "Roger Glover" <glover_roger@xxxxxxxxx> Date: Sun, 16 Feb 2003 02:05:41 -0600 |
I wrote: > S Woodside wrote: > ... ... > > <xsl:template match="my:form_textarea" priority="1"> > > <b>SIMONHELLO</b> > > </xsl:template> > > <!-- > > [[xsl:template match="*" priority="-1"]] > > [[xsl:copy-of select="."/]] > > [[/xsl:template]] > > --> ... > Instead of your commented-out template, try this one: > > <xsl:template match="*|@*"> > <xsl:copy> > <xsl:apply-templates select="*|@*"/> > <xsl:copy> > </xsl:template> ... which is almost, but not quite, correct. The <xsl:apply-templates> element should look like this instead: <xsl:apply-templates select="node()|@*"/> Unlike my original line, this corrected line will invoke the default templates for processing instruction nodes, comment nodes, and especially text nodes. XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] updated namespace difficu, Roger Glover | Thread | Re: [xsl] updated namespace difficu, S Woodside |
RE: [xsl] updated namespace difficu, Roger Glover | Date | Re: [xsl] Re: nxslt - .NET XSLT Com, Oleg Tkachenko |
Month |