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

RE: creating container elements

Subject: RE: creating container elements
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Tue, 6 Apr 2004 13:54:34 +0100
container postion
> When I first approached this I tried using something such as
> 
> <xsl:if test="postion() = 1">
>   <container>
> </xsl:if>
> 
> but this complained as it was not valid XML.
> 

Like many newcomers to XSLT, you are thinking in terms of tags rather than
nodes. An XSLT stylesheet writes nodes to a result tree, not tags to a
serial file, and you can't write half a node.

Your problem is a grouping problem of some kind, and you should read
http://www.jenitennison.com/xslt/grouping

Michael Kay

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.