[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: matching
- From: "G. Ken Holman" <gkholman@CraneSoftwrights.com>
- To: xml-dev@lists.xml.org
- Date: Thu, 04 Jan 2001 15:10:30 -0500
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@CraneSoftwrights.com
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