XSLT Extension - Nodes

The Nodes library XSLT extension can be used to ease those often tricky situations in XSLT.

Enabling the XSLT extension for use in your XSLT templates.

Add the following XML snippet to your ~/config/xsltExtensions.config file:

<XsltExtensions>
	...
	<ext assembly="uComponents.Core" type="uComponents.Core.XsltExtensions.Nodes" alias="ucomponents.nodes" />
	...
</XsltExtensions>

Methods

Here are available methods:

Method Returns Notes
GetExpireDate(int nodeId) Returns the expiry date of a node.
GetNodeIdByUrl(string url) Returns the node Id. Gets the node Id by URL.
GetReleaseDate(int nodeId) Returns the release date of a node.
GetUniqueId(int nodeId) Returns the unique id of a node.
GetXmlNodeByCsv(string csv) Returns an XPathNodeIterator of the nodes from the CSV list. Gets a list of XML nodes by CSV.
GetXmlNodeByCsv(string csv, bool persistOrder) Returns an XPathNodeIterator of the nodes from the CSV list. Gets a list of XML nodes by CSV (with an option to persist the order).
GetXmlNodeByUrl(string url) Returns the XML for the node. Gets the XML node by URL.
GetXPathQuery(string url) Returns an XPath query for the specified URL. Gets the XPath query.

Last edited Sep 26, 2011 at 2:23 PM by leekelleher, version 3