xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] [xsl:] From two sibling nodes to output one (transformed) inside the other at a specific place.


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
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor