[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

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

Subject: RE: why doesn't this do what i think it should?
From: "Pete Beazley" <pete@xxxxxxxxxxxxxxxxx>
Date: Fri, 9 Mar 2001 16:57:18 -0500
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@xxxxxxxxxxxxxxxxx
ClearlyOnline, Inc.  http://clearlyonline.com
XML and XSLT Training & Consulting
PGP Key  mailto:pgp.pete@xxxxxxxxxxxxxxxxx


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.