This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Understanding Templates
- To: "'xsl-list at lists dot mulberrytech dot com'" <xsl-list at lists dot mulberrytech dot com>
- Subject: [xsl] Understanding Templates
- From: "Hewko, Doug" <Doug dot Hewko at ccra-adrc dot gc dot ca>
- Date: Tue, 18 Sep 2001 14:39:33 -0400
- Reply-To: xsl-list at lists dot mulberrytech dot com
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