[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: updated namespace difficulty

Subject: RE: updated namespace difficulty
From: "Roger Glover" <glover_roger@xxxxxxxxx>
Date: Sun, 16 Feb 2003 02:05:41 -0600
RE:  updated namespace difficulty
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.