Hi, all!
I just want to get something clear about default template rules. I have the following XML file and XSL stylesheet:
When I do the transformation I get a table that displays the name, mass, radius, and day of Mercury. What I am wondering is why doesn't the text data for the density & the distance get generated outside the table? Is this because the template for PLANET explicitly states what to do so that the density and distance elements aren't even looked at?
I guess my question is if you have a template or templates for a node (with a match attr) will this prevent the default template rule from being applied to sibling nodes even if they fail the match
test? I just want to be very clear on how default template rules get applied.
The example XML & XSL files are based on the examples in Inside XSLT by Steven Holzner.
Thanks,
John