Function Reference

ReplaceAllVariablesInFile

Replaces a collection of SASS variables in a file with those specified by the user.

Syntax:

wwsass:ReplaceAllVariablesInFile($inputSassFilePath, $replacements)

Parameters:

Name

Type

Description

inputSassFilePath

string

Path to the input SASS file.

replacements

object

Object that represents an XML collection of SASS variables.

Example:


<xsl:variable name="VarSassVariableReplacementsAsXML">
<wwsass:Variable name="footer_height" value="50px" />
<wwsass:Variable name="menu_width" value="100px" />
</xsl:variable>
<xsl:variable name = "VarSassVariableReplacements" select="msxsl:node-set($VarSassVariableReplacementsAsXML)/*" />

<xsl:variable name="VarReplaceVariables" select="wwsass:ReplaceAllVariablesInFile('file.scss', $VarSassVariableReplacements)"/>

SassToCss

Creates a CSS file out of a SASS file.

Syntax:

wwsass:SassToCss($inputSassFilePath, $outputCssFilePath)

Parameters:

Name

Type

Description

inputSassFilePath

string

Path to the input SASS file.

outputCssFilePath

string

Path to the output CSS file.

Returns:

XPathNodeIterator: A node set.

Example:


<xsl:variable name="VarSassToCssResult" select="wwsass:SassToCss('input.sass', 'output.css')" />

Last modified date: 08/12/2026