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

Re: matching

  • From: "G. Ken Holman" <gkholman@C...>
  • To: xml-dev@l...
  • Date: Thu, 04 Jan 2001 15:10:30 -0500

template matching fundamentals
At 01/01/04 14:41 -0500, e.e wrote:
>I am just a beginner

Welcome!

>and my questions are as follows:

XSL, XSLT and XPath questions would be better posted to the following list:

   http://www.mulberrytech.com/xsl/xsl-list

There are a number of subscribers who would enthusiastically respond to 
such questions.

There is also an *excellent* FAQ at:

   http://www.dpawson.co.uk

><xsl:template match ="/order"> {starts from document root,Child of a 
>document root  } {does it return all order elements or first match?}

This matches only the document element of the source document only if the 
document element is named "order".

><xsl:template match ="order">    {starts from ? Child of a which context 
>node ? } {does it return all order elements or first match?}

This matches *any* element named order in the document.

><xsl:template match ="//order"> {starts from ? Child of a which context 
>node ? } {does it return all order elements or first match?}

This is equivalent to match="order".

Note that none of the above "return" anything ... it would help you to 
review basic concepts of template matching.  There is a 120-page excerpt of 
our book that can be freely downloaded from our web site ... that should 
give you some of the basics you need.  A prose rewrite of the first two 
modules is also available through the XML.com link below.

I hope this helps.

............. Ken

--
G. Ken Holman                      mailto:gkholman@C...
Crane Softwrights Ltd.               http://www.CraneSoftwrights.com/x/
Box 266, Kars, Ontario CANADA K0A-2E0     +1(613)489-0999   (Fax:-0995)
Web site:     XSL/XML/DSSSL/SGML/OmniMark services, training, products.
Book:   Practical Transformation Using XSLT and XPath ISBN1-894049-05-5
Article: What is XSLT? http://www.xml.com/pub/2000/08/holman/index.html
Next public instructor-led training:             2001-01-27,2001-02-21,
-               2001-02-27/03-01,2001-03-05/07,2001-04-06/07,2001-05-01


  • References:

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
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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.