This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: why doesn't this do what i think it should?


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]