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

Understanding Templates

Subject: Understanding Templates
From: "Hewko, Doug" <Doug.Hewko@xxxxxxxxxxxxxxx>
Date: Tue, 18 Sep 2001 14:39:33 -0400
understanding templates
Hi!

I have a couple of questions about Templates

Say that I have the following XML file:
<root>
	<foo>Shoo
		<bar>Beer</bar>
	</foo>
	<eggs>Ham
		<bar>Soap</bar>
	</eggs>
</root>

Using "match='/'" will give me the entire XML document

If I have "match='//bar'", and a corresponding "value-of", would I get both
"Beer" and "Soap" because "//" looks for any instance in the node of the
named element?

If my only templates are "match='/'" and "match='bar'", what would I get?
Aside of using "match='foo/bar'" and "match='eggs/bar'", how could I make
sure I get the <bar> under <foo> and not the one under <eggs>?

 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.