XSL:Sort by Date, Organise by Type

In this example, we have a collection of material which we want to make available to users: whitepapers, articles, tips etc.  We want to group these by material and show the relevant subheading when this changes, but avoid redisplaying the heading if it remains the same, say: Whitepaper ... ... Article ... ... As per [...]

By |2009-03-02T13:29:07+01:00March 2nd, 2009|Articles, LiveSite, XSL|0 Comments

XSL:Sort By Date, Limit Returned Results

In an accompanying article, a simple method to sort by date was introduced. Normally it is desirable to limit the number of results shown. There are various complex ways of doing this posted on other sites, the fundamental problem being that <xsl:variable> works as a constant in practice, i.e set only once. Trying to implement [...]

By |2009-03-02T12:27:04+01:00March 2nd, 2009|Articles, XSL|0 Comments

XSL:Sort By Date

The following  should do the work This assumes the date is in the form dd/mm/yyyy: the seperators could be different as they are ignored anyway based on the substring. The important thing to realise here is that the <xsl:sort> functions do not do anything APART from sort, so there is nothing to see at this [...]

By |2009-03-02T12:06:03+01:00March 2nd, 2009|Articles, LiveSite, XSL|0 Comments

Keeping XML Tags in XSL

Problem In your XSL you want to grab an XML document "as is" but the XSL keeps stripping the XML tags and only returning data values to you. My LiveSite Component was connecting to a XML WebService and in one case I only wanted to retrieve all the XML and return it to my XSL. [...]

By |2009-02-27T05:45:25+01:00February 27th, 2009|XSL|0 Comments

LiveSite XSL Reference II

Nested Quotations with XSL It is not unusual to come across a situation where nested quotations fail (are exceeded) in an apperance XSL document. Say I want to tie a Javascript function to an input control, but I want to pass the value of a datum-type as an argument to the funtion. Therefore I want [...]

By |2008-11-28T22:30:32+01:00November 28th, 2008|LiveSite, XSL|0 Comments

Work with LiveSite Components “Offline”

If you are developing LiveSite components in a shared environment, the chances are high that your editing will be interrupted by other users performing builds. To get around this you can bypass the online environment, and access the component files direct. 1) Use Samba or a tool such as FileZilla to access the component files. [...]

By |2008-08-08T10:47:51+01:00August 8th, 2008|XSL|0 Comments

VIM Functions and Menu Items for Writing XSL

Add the following lines to a myxsl.vim file and place it in your VIM plugins directory. The next time you start VIM, you will have a menu called "lf" appear with the following items listed that allow you to create more xsl code with less typing. Note that you must also add the VIM utility functions [...]

By |2008-07-31T12:07:19+01:00July 31st, 2008|Vim, XSL|0 Comments