Subject: RE: Adding element to xml snippet using xslt
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Tue, 22 Feb 2005 20:24:14 -0000
|
> <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/
|