Язык преобразований XSL


B Справочник синтаксиса элементов


<!-- Category: instruction -->

</>

<!-- Category: instruction -->

<

  select = node-set-expression

  mode = qname>

  <!-- Content: ( | )* -->

</xsl:apply-templates>

<!-- Category: instruction -->

<

  name = { qname }
  namespace = { uri-reference }>

  <!-- Content: template -->

</xsl:attribute>



<!-- Category: top-level-element -->

<

  name = qname

  use-attribute-sets = qnames>

  <!-- Content: * -->

</xsl:attribute-set>

<!-- Category: instruction -->

<

  name = qname>

  <!-- Content: * -->

</xsl:call-template>

<!-- Category: instruction -->

<>

  <!-- Content: (+, ?) -->

</xsl:choose>

<!-- Category: instruction -->

<>

  <!-- Content: template -->

</xsl:comment>

<!-- Category: instruction -->

<

  use-attribute-sets = qnames>

  <!-- Content: template -->

</xsl:copy>

<!-- Category: instruction -->

<

  select = expression />

<!-- Category: top-level-element -->

<

  name = qname

  decimal-separator = char

  grouping-separator = char

  infinity = string

  minus-sign = char

  NaN = string

  percent = char

  per-mille = char

  zero-digit = char

  digit = char

  pattern-separator = char />

<!-- Category: instruction -->

<

  name = { qname }

  namespace = { uri-reference }

  use-attribute-sets = qnames>

  <!-- Content: template -->

</xsl:element>

<!-- Category: instruction -->

<>

  <!-- Content: template -->

</xsl:fallback>

<!-- Category: instruction -->



<

  select = node-set-expression>

  <!-- Content: (xsl:sort*, template) -->

</xsl:for-each>

<!-- Category: instruction -->

<

  test = boolean-expression>

  <!-- Content: template -->

</xsl:if>

<

  href = uri-reference />

<!-- Category: top-level-element -->

<

  href = uri-reference />

<!-- Category: top-level-element -->

<

  name = qname

  match = pattern

  use = expression />

<!-- Category: instruction -->

<

  terminate = "yes" | "no">

  <!-- Content: template -->

</xsl:message>

<!-- Category: top-level-element -->

<

  stylesheet-prefix = prefix | "#default"

  result-prefix = prefix | "#default" />

<!-- Category: instruction -->

<

  level = "single" | "multiple" | "any"

  count = pattern

  from = pattern

  value = number-expression

  format = { string }

  lang = { nmtoken }

  letter-value = { "alphabetic" | "traditional" }

  grouping-separator = { char }

  grouping-size = { number } />

<>

  <!-- Content: template -->

</xsl:otherwise>

<!-- Category: top-level-element -->

<

  method = "xml" | "html" | "text" | qname-but-not-ncname

  version = nmtoken
  encoding = string

  omit-xml-declaration = "yes" | "no"

  standalone = "yes" | "no"

  doctype-public = string

  doctype-system = string

  cdata-section-elements = qnames

  indent = "yes" | "no"

  media-type = string />



<!-- Category: top-level-element -->

<

  name = qname

  select = expression>

  <!-- Content: template -->

</xsl:param>

<!-- Category: top-level-element -->

<

  elements = tokens />

<!-- Category: instruction -->

<

  name = { ncname }>

  <!-- Content: template -->

</xsl:processing-instruction>

<

  select = string-expression

  lang = { nmtoken }

  data-type = { "text" | "number" | qname-but-not-ncname }

  order = { "ascending" | "descending" }

  case-order = { "upper-first" | "lower-first" } />

<!-- Category: top-level-element -->

<

  elements = tokens />

<

  id = id

  extension-element-prefixes = tokens

  exclude-result-prefixes = tokens

  version = number>

  <!-- Content: (*, top-level-elements) -->

</xsl:stylesheet>

<!-- Category: top-level-element -->
<xsl:template
  match = pattern
  name = qname
  priority = number
  mode = qname>
  <!-- Content: (
href="#element-param">xsl:param*, template) -->
</xsl:template>

<!-- Category: instruction -->

<

  disable-output-escaping = "yes" | "no">

  <!-- Content: #PCDATA -->

</xsl:text>

<

  id = id

  extension-element-prefixes = tokens

  exclude-result-prefixes = tokens

  version = number>

  <!-- Content: (*, top-level-elements) -->

</xsl:transform>

<!-- Category: instruction -->

<xsl:value-of

  select = string-expression

  disable-output-escaping = "yes" | "no" />

<!-- Category: top-level-element -->

<!-- Category: instruction -->

<

  name = qname

  select = expression>

  <!-- Content: template -->

</xsl:variable>

<

  test = boolean-expression>

  <!-- Content: template -->

</xsl:when>

<

  name = qname

  select = expression>

  <!-- Content: template -->

</xsl:with-param>


Содержание раздела