This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: why doesn't this do what i think it should?
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] why doesn't this do what i think it should?
- From: "Pete Beazley" <pete at clearlyonline dot com>
- Date: Fri, 9 Mar 2001 16:57:18 -0500
- Reply-To: xsl-list at lists dot mulberrytech dot com
> Why doesn't this do what I think it should? Why is the result not
> enclosed in <newaaa></newaaa>? I am using TestXSLT from Xalan 1.0.
Content that you want written to the result tree needs to be inside a
template. I usually use a root template to create enclosing elements such as
your <newaaa></newaaa>
Try this:
<xsl:template match="/">
<newaaa>
<xsl:apply-templates/>
</newaaa>
</xsl:template>
--------
Pete Beazley mailto:pete@clearlyonline.com
ClearlyOnline, Inc. http://clearlyonline.com
XML and XSLT Training & Consulting
PGP Key mailto:pgp.pete@clearlyonline.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list