public static function toXSL($attrValue)
	{
		$xsl = '';
		foreach (self::parse($attrValue) as list($type, $content))
		{
			if ($type === 'expression')
			{
				$xsl .= '<xsl:value-of select="' . htmlspecialchars($content, ENT_COMPAT, 'UTF-8') . '"/>';
			}
			elseif (trim($content) !== $content)
			{
				$xsl .= '<xsl:text>' . htmlspecialchars($content, ENT_NOQUOTES, 'UTF-8') . '</xsl:text>';
			}
			else
			{
				$xsl .= htmlspecialchars($content, ENT_NOQUOTES, 'UTF-8');
			}
		}

		return $xsl;
	}
public static function toXSL($attrValue)
	{
		$xsl = '';
		foreach (self::parse($attrValue) as list($type, $content))
		{
			if ($type === 'expression')
			{
				$xsl .= '<xsl:value-of select="' . htmlspecialchars($content, ENT_COMPAT, 'UTF-8') . '"/>';
			}
			elseif (trim($content) !== $content)
			{
				$xsl .= '<xsl:text>' . htmlspecialchars($content, ENT_NOQUOTES, 'UTF-8') . '</xsl:text>';
			}
			else
			{
				$xsl .= htmlspecialchars($content, ENT_NOQUOTES, 'UTF-8');
			}
		}

		return $xsl;
	}
public static function toXSL ( $ attrValue ) { $ xsl = '' ; foreach ( self :: parse ( $ attrValue ) as list ( $ type , $ content ) ) { if ( $ type === 'expression' ) { $ xsl .= '<xsl:value-of select="' . htmlspecialchars ( $ content , ENT_COMPAT , 'UTF-8' ) . '"/>' ; } elseif ( trim ( $ content ) !== $ content ) { $ xsl .= '<xsl:text>' . htmlspecialchars ( $ content , ENT_NOQUOTES , 'UTF-8' ) . '</xsl:text>' ; } else { $ xsl .= htmlspecialchars ( $ content , ENT_NOQUOTES , 'UTF-8' ) ; } } return $ xsl ; }
Transform given attribute value template into an XSL fragment

@param  string $attrValue
@return string
Transform given attribute value template into an XSL fragment