Microsoft XSLT
Purpose:
- Microsoft implemented additional methods not part of the XSLT 1.1 standard. This work was done prior to the XSLT 2.0 and EXSLT specifications being finalized.
Namespace:
urn:schemas-microsoft-com:xslt
Prefix:
msxsl
Methods:
- node-set(string textualXML):
- Converts textual XML into a node set in a new XML document. Most often used to convert intermediate XML back into a working node set for additional processing.
Returns:- A node set equivalent to the provided textual XML.
- Determine a unique set of style names for a group of paragraphs.
<xsl:variable name="VarStylesAsXML"> <xsl:for-each select="$VarParagraphs"> <xsl:variable name="VarParagraph" select="." /> <wwstyle:Style name="{$VarParagraph/@stylename}" /> </xsl:for-each> </xsl:variable> <xsl:variable name="VarStyles" select="msxsl:node-set($VarStylesAsXML)/*" /> <xsl:variable name="VarUniqueStylesAsXML"> <xsl:for-each select="$VarStyles"> <xsl:variable name="VarStyle" select="." /> <xsl:variable name="VarStylesWithName" select="key('wwstyles-styles-by-name', $VarStyle/@name)" /> <xsl:if test="count($VarStyle | $VarStylesWithName[1]) = 1"> <xsl:copy-of select="$VarStyle" /> </xsl:if> </xsl:for-each> </xsl:variable> <xsl:variable name="VarUniqueStyles" select="msxsl:node-set($VarUniqueStylesAsXML)" />
- Converts textual XML into a node set in a new XML document. Most often used to convert intermediate XML back into a working node set for additional processing.