An Alternative Layout
In the previous example, only the lt library gt element was declared as a child of the lt xs schema gt element, so this is the only element available globally. If you want to be able to use other elements globally, you can change the way they're declared by using the ref attribute. The following code shows the schema document reworked to make the lt DVD gt element global lt xml version 1.0 encoding UTF-8 gt lt xs schema lt xs element name library gt lt xs complexType gt lt xs sequence gt lt xs...
Transformation Without Change
When the stylesheet applies the transformation, you want the remaining document contents to remain unchanged, including the lt html gt , lt head gt , lt title gt , lt style gt , lt b gt , lt h1 gt , lt h2 gt , lt ul gt , and lt li gt elements. If you don't specify a transformation for these tags, the XSLT processor will ignore them. In XSLT 1.0, lt xslt template gt has a priority attribute that allows you to specify which template to apply if several match a node. A higher priority indicates...