| 
 
Subject: [xsl] [xsl:] From two sibling nodes to output one (transformed) inside	 the other at a specific place.  From: TSchutzerWeissmann@xxxxxxxxxxxxxxxx Date: Fri, 1 Mar 2002 13:18:46 -0000  | 
this is not intended to be an exercise in solipsism, just to save you the
trouble of replying where it's unnecessary - sorry!
I wrote:
 - is there an efficient way I can copy all the static content elements
except my marker element, which I replace with the contents of the variable?
yes: it's on Dave Pawson's site as the first example for xsl:copy -
<xsl:template match="*">
    <xsl:copy>
      <xsl:apply-templates/>
    </xsl:copy>
  </xsl:template>
  <xsl:template match="replaceMe">
    <xsl:value-of select="$myVariable"/>
  </xsl:template>
But there's no need to put it into a variable, I could just use another
template, no?
Tom
 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
| Current Thread | 
|---|
  | 
| <- Previous | Index | Next -> | 
|---|---|---|
| Re: [xsl] Flatten an XML file, Thomas B. Passin | Thread | Re: [xsl] [xsl:] From two sibling n, Markus Spath | 
| [xsl] Flatten an XML file, JWM | Date | RE: [xsl] Flatten an XML file, Andrew Mottershead | 
| Month |