/XSL

Use Sablotron with Expat to test XSL locally and quickly

Download Windows Sablotron zip file from http://www.gingerall.org/sablotron.html Download Windows Expat parser from http://downloads.sourceforge.net/expat/expat-win32bin-2.0.1.exe?modtime=1181069764&big_mirror=0 Unzip Sablotron to c:sab Install Expat Browse to Expat dir and copy all files in bin directory to c:sabbin Check it works with "c:sabbinsabcmd.exe --help" Start testing your XSL scripts as per the step below c:sabbinsabcmd.exe mytemplates.xsl mysource.xml myoutput.html That's it! Have [...]

By |2008-07-23T11:51:21+00:00July 23rd, 2008|XSL|0 Comments

Create HTML Currency Entity References in XSL

Example XSL Sheet Below (Note, for each CURRENCY element found, the full set of available currency symbols is rendered. This is just for the example. The key line is :- <pre lang="xsl"> <xsl:text disable-output-escaping="yes">€</xsl:text> </pre> <pre lang="xsl"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:apply-templates /> <xsl:template match="CURRENCY"> <xsl:call-template name="currency_symbol"> <xsl:with-param name="iso_code">GBP</xsl:with-param> </xsl:call-template> <xsl:call-template name="currency_symbol"> <xsl:with-param name="iso_code">EUR</xsl:with-param> </xsl:call-template> <xsl:call-template [...]

By |2008-07-23T11:38:02+00:00July 23rd, 2008|XSL|0 Comments

LiveSite XSL Reference

The idea with this page is to capture all the useful LiveSite XSL syntax for use in the Appearance XSL of a component. This way you can be lazy :) Select Values Select a basic datum: <xsl:value-of select="/Properties/Data/Datum[@Name='Message']"/> Admin Switch This is used in the component to determine if it is being viewed from within [...]

By |2008-07-02T06:54:06+00:00July 2nd, 2008|LiveSite, XSL|0 Comments