Subject: Re: [xsl] searching for occurrences of unique string-value and replacing with string value of another node From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Wed, 11 Jun 2008 11:52:26 -0400 |
>Assuming the context node is an element, that means all attributes of >the element. Otherwise it means zero nodes (as only elements have >attributes).
Okay, so in this case I don't think I understand the purpose of this template. The context is matching all nodes on the attribute access OR all child nodes of the context node, right? It is then applying templates and selecting the exact same thing. Doesn't that mean there *is* no context? Wouldn't the same thing be achieved by just calling a match to the root?
<xsl:template match="/">
I tried removing this template from the stylesheet and I do still get the same beautiful result (thanks Michael!).
<xsl:template match="@*|node()"> <xsl:apply-templates select="@*|node()"/> </xsl:template>
Cheers, Wendell
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] searching for occurrences, Julie | Thread | Re: [xsl] searching for occurrences, Julie |
RE: [xsl] Embedded bold,italic,anch, Michael Kay | Date | Re: [xsl] Embedded bold,italic,anch, Wendell Piez |
Month |