profile for Macon_Cao at Stack Overflow, Q&A for professional and enthusiast programmers

Umbraco Xslt functions

xmlns:umbraco.library="urn:umbraco.library"

void AddJquery();
XPathNodeIterator AllowedGroups(int documentId, string path);
void ChangeContentType(string MimeType);
void ClearLibraryCacheForMedia(int mediaId);
void ClearLibraryCacheForMediaDo(int mediaId);
void ClearLibraryCacheForMember(int mediaId);
void ClearLibraryCacheForMemberDo(int memberId);
string ContextKey(string key);
bool CultureExists(string cultureName);
string CurrentDate();
string DateAdd(string Date, string AddType, int add);
string DateAddWithDateTimeObject(DateTime Date, string AddType, int add);
int DateDiff(string firstDate, string secondDate, string diffType);
bool DateGreaterThan(string firstDate, string secondDate);
bool DateGreaterThanOrEqual(string firstDate, string secondDate);
bool DateGreaterThanOrEqualToday(string firstDate);
bool DateGreaterThanToday(string firstDate);
string FormatDateTime(string Date, string Format);
Domain[] GetCurrentDomains(int NodeId);
XPathNodeIterator GetCurrentMember();
string GetDictionaryItem(string Key);
XPathNodeIterator GetDictionaryItems(string Key);
string GetHttpItem(string key);
string GetItem(string alias);
string GetItem(int nodeID, string alias);
XPathNodeIterator GetMedia(int MediaId, bool Deep);
XPathNodeIterator GetMember(int MemberId);
string GetMemberName(int MemberId);
string GetNodeFromLevel(string path, int level);
string GetPreValueAsString(int Id);
XPathNodeIterator GetPreValues(int DataTypeId);
string GetPropertyTypeName(string ContentTypeAlias, string PropertyTypeAlias);
Random GetRandom();
Random GetRandom(int seed);
Relation[] GetRelatedNodes(int NodeId);
XPathNodeIterator GetRelatedNodesAsXml(int NodeId);
string GetWeekDay(string Date);
XPathNodeIterator GetXmlAll();
XPathNodeIterator GetXmlDocument(string Path, bool Relative);
XPathNodeIterator GetXmlDocumentByUrl(string Url);
XPathNodeIterator GetXmlDocumentByUrl(string Url, int CacheInSeconds);
XPathNodeIterator GetXmlNodeById(string id);
XPathNodeIterator GetXmlNodeByXPath(string xpathQuery);
XPathNodeIterator GetXmlNodeCurrent();
bool HasAccess(int NodeId, string Path);
string HtmlEncode(string Text);
bool IsLoggedOn();
bool IsProtected(int DocumentId, string Path);
int LastIndexOf(string Text, string Value);
string LongDate(string Date);
string LongDate(string Date, bool WithTime, string TimeSplitter);
string LongDateWithDayName(string Date, string DaySplitter, bool WithTime, string TimeSplitter, string GlobalAlias);
string md5(string text);
string NiceUrl(int nodeID);
string NiceUrlFullPath(int nodeID);
string NiceUrlWithDomain(int nodeID);
void PublishSingleNode(int DocumentId);
string PythonExecute(string expression);
string PythonExecuteFile(string file);
string QueryForNode(string id);
void RefreshContent();
void RegisterClientScriptBlock(string key, string script, bool addScriptTags);
void RegisterJavaScriptFile(string key, string url);
void RegisterStyleSheetFile(string key, string url);
string RemoveFirstParagraphTag(string text);
string RenderMacroContent(string Text, int PageId);
string RenderTemplate(int PageId);
string RenderTemplate(int PageId, int TemplateId);
string Replace(string text, string oldValue, string newValue);
string ReplaceLineBreaks(string text);
string RePublishNodes(int nodeID);
void RePublishNodesDotNet(int nodeID);
void RePublishNodesDotNet(int nodeID, bool SaveToDisk);
string Request(string key);
string RequestCookies(string key);
string RequestForm(string key);
string RequestQueryString(string key);
string RequestServerVariables(string key);
string ResolveVirtualPath(string path);
void SendMail(string FromMail, string ToMail, string Subject, string Body, bool IsHtml);
string Session(string key);
string SessionId();
void setCookie(string key, string value);
void setSession(string key, string value);
string ShortDate(string Date);
string ShortDate(string Date, bool WithTime, string TimeSplitter);
string ShortDateWithGlobal(string Date, string GlobalAlias);
string ShortDateWithTimeAndGlobal(string Date, string GlobalAlias);
string ShortTime(string Date);
XPathNodeIterator Split(string StringToSplit, string Separator);
string StripHtml(string text);
string Tidy(string StringToTidy, bool LiveEditing);
string TruncateString(string Text, int MaxLength, string AddString);
void UnPublishSingleNode(int DocumentId);
void UpdateDocumentCache(int DocumentId);
string UrlEncode(string Text);

 

xmlns:Exslt.ExsltCommon="urn:Exslt.ExsltCommon"

string objecttype(object o);

 

xmlns:Exslt.ExsltDatesAndTimes="urn:Exslt.ExsltDatesAndTimes"

string add(string datetime, string duration);
string addduration(string duration1, string duration2);
string avg(XPathNodeIterator iterator);
string date();
string date(string d);
string datetime();
string datetime(string d);
string dayabbreviation();
string dayabbreviation(string d);
double dayinmonth();
double dayinmonth(string d);
double dayinweek();
double dayinweek(string d);
double dayinyear();
double dayinyear(string d);
string dayname();
string dayname(string d);
double dayofweekinmonth();
double dayofweekinmonth(string d);
string difference(string start, string end);
string duration(double seconds);
string formatdate(string d, string format);
double hourinday();
double hourinday(string d);
bool leapyear();
bool leapyear(string d);
string max(XPathNodeIterator iterator);
string min(XPathNodeIterator iterator);
double minuteinhour();
double minuteinhour(string d);
string monthabbreviation();
string monthabbreviation(string d);
double monthinyear();
double monthinyear(string d);
string monthname();
string monthname(string d);
string parsedate(string d, string format);
double secondinminute();
double secondinminute(string d);
double seconds();
double seconds(string datetime);
string sum(XPathNodeIterator iterator);
string time();
string time(string d);
double weekinyear();
double weekinyear(string d);
double year();
double year(string d);


 

xmlns:Exslt.ExsltMath="urn:Exslt.ExsltMath"

string add(string datetime, string duration);
string addduration(string duration1, string duration2);
string avg(XPathNodeIterator iterator);
string date();
string date(string d);
string datetime();
string datetime(string d);
string dayabbreviation();
string dayabbreviation(string d);
double dayinmonth();
double dayinmonth(string d);
double dayinweek();
double dayinweek(string d);
double dayinyear();
double dayinyear(string d);
string dayname();
string dayname(string d);
double dayofweekinmonth();
double dayofweekinmonth(string d);
string difference(string start, string end);
double abs(double number);
double acos(double x);
double asin(double x);
double atan(double x);
double atan2(double x, double y);
double avg(XPathNodeIterator iterator);
double constant(string c, double precision);
double cos(double x);
double exp(double x);
XPathNodeIterator highest(XPathNodeIterator iterator);
double log(double x);
XPathNodeIterator lowest(XPathNodeIterator iterator);
double max(XPathNodeIterator iterator);
double min(XPathNodeIterator iterator);
double random();
double sin(double x);
double sqrt(double number);
double tan(double x);

 

xmlns:Exslt.ExsltRegularExpressions="urn:Exslt.ExsltRegularExpressions"

string add(string datetime, string duration);
string addduration(string duration1, string duration2);
XPathNodeIterator match(string str, string regexp);
XPathNodeIterator match(string str, string regexp, string flags);
string replace(string input, string regexp, string flags, string replacement);
bool test(string str, string regexp);
bool test(string str, string regexp, string flags);
XPathNodeIterator tokenize(string str, string regexp);
XPathNodeIterator tokenize(string str, string regexp, string flags);

 

xmlns:Exslt.ExsltStrings="urn:Exslt.ExsltStrings"

string concat(XPathNodeIterator nodeset);
string lowercase(string str);
string padding(int number);
string padding(int number, string s);
string replace(string str, string oldValue, string newValue);
XPathNodeIterator split(string str);
XPathNodeIterator split(string str, string delimiter);
XPathNodeIterator tokenize(string str);
XPathNodeIterator tokenize(string str, string delimiters);
string uppercase(string str);

 

xmlns:Exslt.ExsltSets="urn:Exslt.ExsltSets"

XPathNodeIterator difference(XPathNodeIterator nodeset1, XPathNodeIterator nodeset2);
XPathNodeIterator distinct(XPathNodeIterator nodeset);
bool hassamenode(XPathNodeIterator nodeset1, XPathNodeIterator nodeset2);
XPathNodeIterator intersection(XPathNodeIterator nodeset1, XPathNodeIterator nodeset2);
XPathNodeIterator leading(XPathNodeIterator nodeset1, XPathNodeIterator nodeset2);
bool subset(XPathNodeIterator nodeset1, XPathNodeIterator nodeset2);
XPathNodeIterator trailing(XPathNodeIterator nodeset1, XPathNodeIterator nodeset2);

posted on 2012-07-25 23:22  无所畏惧,有所期待  阅读(368)  评论(0编辑  收藏  举报