Table of Contents [Hide/Show]
XML File Header XSL File Template Simple With Scripting Elements and Functions A B, C D E F G, H, I, J, K L M, N O, P, Q R, S T U, V, W, X, Y, Z Using Namespaces Sample XML Source Sample XSL Source
<?xml version="1.0"?> <?xml-stylesheet type="text/xsl" href="MyXslFile.xsl"?>
<?xml version="1.0" encoding="ISO-8859-1"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxml="urn:schemas-microsoft-com:xslt" version="1.0"> <xsl:template match="/"> <xsl:for-each select="*"> <xsl:value-of select="name()"/> <br/> </xsl:for-each> </xsl:template> </xsl:stylesheet>
<?xml version="1.0" encoding="ISO-8859-1"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxml="urn:schemas-microsoft-com:xslt" xmlns:pj="urn:schemas-pgjasinski-batcave-net:pj" version="1.0"> <msxml:script language="VBScript" implements-prefix="pj"> Function msNote() msNote = CStr(Now()) End Function </msxml:script> <xsl:template match="/"> <xsl:for-each select="*"> <xsl:value-of select="name()"/> <br/> </xsl:for-each> </xsl:template> </xsl:stylesheet>
<xsl:stylesheet>, <xsl:template>, <xsl:for-each>, <xsl:choose>, <xsl:when>, <xsl:otherwise>, <xsl:value-of>, <xsl:call-template>
<xsl:apply-imports>
<xsl:apply-templates select="expression" mode="qname">
<xsl:attribute name="qname" namespace="URI">
<xsl:attribute-set name="qname" use-attribute-sets="qnames">
<xsl:attribute>
<xsl:stylesheet>
<xsl:transform>
boolean(value)
true
false
<xsl:call-template name="qname">
<xsl:cdata>
CDATA
ceiling(number)
<xsl:choose>
<xsl:when>
<xsl:otherwise>
<xsl:comment>
concat(val1, val2, ...)
contains(search-in,search-for)
search-for
search-in
<xsl:copy use-attribute-sets="name-list">
<xsl:copy-of select="expression"/>
count(node-set)
current()
<xsl:decimal-format decimal-separator="character" digit="character" grouping-separator="character" infinity="string" minus-sign="character" name="qname" NaN="string" pattern-separator="character" percent="character" per-mille="character" zero-digit="character">
format-number
<xsl:define-template-set>
document(uri, base-uri)
<xsl:element name="element-name" namespace="URI" use-attribute-sets="qname">
element-available('qname')
<xsl:entity-ref>
<xsl:eval>
<xsl:fallback>
false()
floor(number)
<xsl:for-each select="expression">
formatnumber(number, format, decimal-format-qname)
function-available('function-name')
generate-id(node-set)
id('value')
<xsl:if test="expression">
ELSE
<xsl:import href="uri">
<xsl:include href="uri">
<xsl:key match="pattern" name="qname" use="expression">
key
key(name,value)
lang(language)
last()
<xsl:for-each>
<xsl:apply-templates>
local-name(node)
<xsl:message terminates="yes"|"no">
name(node)
qname
<xsl:namespace-alias stylesheet-prefix="prefix" result-prefix="prefix">
namespace-uri(node)
<xsl:node-name>
normalize-space(string)
not(condition)
<xsl:number count="pattern" format="string" from="pattern" grouping-separator="character" grouping-size="number" lang="languagecode" letter-value={ "alphabetic" | "traditional" } level= {"any" | "multiple" | "single"} value="expression">
number(value)
<xsl:output cdata-section-elements="namelist" doctype-public="string" doctype-system="string" encoding="string" indent= {"yes" | "no"} media-type="mimetype" method={"html" | "name" | "text" | "xml"} omit-xml-declaration={"yes" | "no"} standalone={"yes" | "no"} version="version_number">
<xsl:param name="qname" select="expression">
<xsl:pi>
position()
<xsl:preserve-space elements="names">
<xsl:processing-instruction name="process-name">
round(number)
<xsl:script language="lang" implementation-prefix="prefix"> (msxml:script)
<xsl:sort case-order="upper-first" | "lower-first" data-type={"number" | "qname" | "text"} lang="language-code" order={"ascending" | " descending"} select="expression">
starts-with(string, substring)
string(expression)
string-length(string)
<xsl:strip-space elements="names">
<xsl:stylesheet version="version_number" id="unique_id" exclude-result-prefixes="list" extension-element-prefixes="list">
substring(string, start, length)
substring-after(string, substring)
substring-before(string, substring)
sum(node-set)
system-property({'xsl:version' | 'xsl:vendor' | 'xsl:vendor-url'})
<xsl:template match="pattern" mode="qname" name="qname" priority="number">
<xsl:text disable-output-escaping={"yes" | "no"}>
<xsl:transform version="version_number" id="unique_id" exclude-result-prefixes="list" extension-element-prefixes="list">
translate(value, old, new)
true()
unparsed-entity-uri('name')
<xsl:value-of select="expression" disable-output-escaping={"yes" | "no"}>
<xsl:variable name="qname" select="expression>
<xsl:when test="expression">
<xsl:with-param name="qname" select="expression">
<xsl:call-template>
<Report xmlns="http://schemas.microsoft.com/sqlserver/reporting/2005/01/reportdefinition" xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner" > . . . <DataSets> <DataSet Name="Main"> . . . <DataSet Name="FYear"> . . . <DataSet Name="FMonth"> . . . </DataSets> </Report>
ssrs
<?xml version="1.0" encoding="ISO-8859-1"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxml="urn:schemas-microsoft-com:xslt" xmlns:ssrs="http://schemas.microsoft.com/sqlserver/reporting/2005/01/reportdefinition" version="1.0"> <xsl:template match="/"> <xsl:for-each select="ssrs:Report/ssrs:DataSets/ssrs:DataSet"> <xsl:value-of select="@Name"/> </xsl:for-each> </xsl:template> </xsl:stylesheet>
ScrewTurn Wiki version 3.0.1.400. Some of the icons created by FamFamFam. Except where noted, all contents Copyright © 1999-2024, Patrick Jasinski.