[Previous] [Contents] [Next]


Q & A


Q What happens when there is more than one style sheet rule that matches an element?
A All of the rules are checked and only the most specific rule is applied. So, for example, select="a/b" would take precedence over select="a". You can control this by explicitly declaring a priority attribute for a rule.
Q What happens if you do not supply any rule at all for an element?
A The default processing action is applied according to the (implied) default rule. This action simply looks for any elements inside the element:
            <xsl:apply-templates>
Q How can you skip elements in the source XML file?
A There are two main ways: You can either not specify a rule for the element, or you can select the element and explicitly output an empty string (the latter is preferable because the element markup would be retained so that you can check that you have actually processed the element).

[Previous] [Contents] [Next]