xsl-list
[Top] [All Lists]

RE: Adding element to xml snippet using xslt

2005-02-22 13:24:14

<xsl:template match="abc:configuration/drillOutDir">
   <xsl:element name="drillOutDir">
      <xsl:value-of select="abc:configuration/drillOutDir"/>
   </xsl:element>
   </xsl:template>


but that will not do anything unless you apply templates to the
drillOutDir element.

I haven't seen the source document, but even if the above template is
invoked, it will only do anything useful if there is a structure something
like this:

<abc:configuration>
  <drillOutDir>
    <abc:configuration>
      <drillOutDir>

(namespaces and all).

Michael Kay
http://www.saxonica.com/




--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--