Recommended tools
- Visual Studio Express
- Foxe
Visual Studio
It provides intelligence prompt for the XSL key words to facilitate the work on the XSL.
Foxe
It provides a tree-nodes like view on the XML document to facilitate the navigation on the umbraco. config cache file.
Template Codes
With the help of the two utility, copy the following code to start your umbraco XSLT development.
]>
Version = "1.0"
xmlns: XSL = "http://www.w3.org/1999/XSL/Transform%22
xmlns: MSXML =" urn: Schemas-Microsoft-com: XSLT "
xmlns: umbraco. library = "urn: umbraco. library "
xmlns: exslt. exsltcommon = "urn: exslt. exsltcommon "
xmlns: exslt. exsltdatesandtimes = "urn: exslt. exsltdatesandtimes "
xmlns: exslt. exsltmath = "urn: exslt. exsltmath "
xmlns: exslt. exsltregularexpressions = "urn: exslt. exsltregularexpressions "
xmlns: exslt. exsltstrings = "urn: exslt. exsltstrings "
xmlns: exslt. exsltsets = "urn: exslt. exsltsets "
exclude-result-prefixes =" MSXML umbraco. library exslt. exsltcommon exslt. exsltdatesandtimes exslt. exsltmath exslt. exsltregularexpressions exslt. exsltstrings exslt. exsltsets ">
<XSL: output method = "XML" omit-XML-declaration = "yes"/>
<XSL: Param name = "currentpage"/>
<XSL: template match = "/">
<! -- The code here -->
</XSL: Template>
</XSL: stylesheet>
The XSLT file is stored in ~ /XSLT/folder. The target XML file is ~ /App_data/umbraco. config.
The following key words are commonly used when you write the XSL.
- Value-
- Select
- Attribute
- For-each
- Sort
- If
The following key words are commonly used when you write the XSL.
- Parent ::*
- Child ::*
- [@ Attributename expression]
Have a fun in coding with XSL for umbraco. config.
supported by Nova umbraco