XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Posttop
(Deleted User) Subject: Any good template tutorials?
Author: (Deleted User)
Date: 25 Oct 2005 08:56 AM
Take a look at this 2 :

http://www.w3schools.com/xsl/
http://www.zvon.org/xxl/XSLTreference/Output/

As for the second part of the question, the answer is no, you don't
have to create template for every child.
First, if you want sub-tree to appear in the target document
without any changes you can use copy-of. Second, when using apply-templates you can specify xpath which will match multiple nodes.

For example :
<xsl:apply-templates select="*"/> will apply templates to all child elements of the current node
<xsl:apply-templates select="@*"/> will apply templates to all attributes of the current node
<xsl:apply-templates select="descendant::*"/> will apply templates not only to direct children but for all descendant elements of the current element


 
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.