How do I create a StyleVision® Power Stylesheet (SPS file) in which child elements can appear in any order?
To preserve the document order of the elements, you need to create “Contents” or “Rest-Of-Contents”. In order to design subelement styles you should use the concept of Global Templates (which are very similar to the concept of XSL templates). The Global Templates are listed under the main tree view in StyleVision® 2010. A Global Template will be shown for each global element defined in the schema. The desired template can be activated by clicking on the element name until a “plus” sign appears. For cases in which you desire subelements to appear in any order, or for mixed content models it is essential to use global templates. StyleVision® Power Stylesheets can only be created using StyleVision® 2010.
Related Questions
- When I save my V8 file to V7, why is the Global Origin being shifted and my elements appear to be scaled when I open the newly created V7 file?
- Can I design an XSLT, XSL-FO or StyleVision® Power Stylesheet (SPS file) in StyleVision® 2010 using an instance file only?
- How do I create a StyleVision® Power Stylesheet (SPS file) in which child elements can appear in any order?