• Skip to main content
  • Skip to search
  • Skip to select language
MDN Web Docs
  • 参考手册
    • 概述 / Web 技术

      适用于开发者的 Web 技术参考手册

    • HTML

      Web 内容的结构

    • CSS

      用于描述文档样式的代码

    • JavaScript

      通用脚本语言

  • 开发指南
    • 概述 / MDN 学习区

      学习 Web 开发

    • MDN 学习区

      学习 Web 开发

    • HTML

      学习使用 HTML 构建 Web 内容

    • CSS

      学习使用 CSS 设置内容样式

    • JavaScript

      学习在浏览器中运行脚本

  • 更多中文网
  1. 面向开发者的 Web 技术
  2. XPath
  3. Functions
  4. true

目录

  • Syntax
  • Specifications
  • Gecko support
  1. XSLT:可扩展样式表语言转换
    1. An overview
    2. For further reading
    3. The Netscape XSLT/XPath Reference
  1. XSLT elements reference
    1. <xsl:apply-imports>
    2. <xsl:apply-templates>
    3. <xsl:attribute-set>
    4. <xsl:attribute>
    5. <xsl:call-template>
    6. <xsl:choose>
    7. <xsl:comment>
    8. <xsl:copy-of>
    9. <xsl:copy>
    10. <xsl:decimal-format>
    11. <xsl:element>
    12. <xsl:fallback>
    13. <xsl:for-each>
    14. <xsl:if>
    15. <xsl:import>
    16. <xsl:include>
    17. <xsl:key>
    18. <xsl:message>
    19. <xsl:namespace-alias>
    20. <xsl:number>
    21. <xsl:otherwise>
    22. <xsl:output>
    23. <xsl:param>
    24. <xsl:preserve-space>
    25. <xsl:processing-instruction>
    26. <xsl:sort>
    27. <xsl:strip-space>
    28. <xsl:stylesheet>
    29. <xsl:template>
    30. <xsl:text>
    31. <xsl:transform>
    32. <xsl:value-of>
    33. <xsl:variable>
    34. <xsl:when>
    35. <xsl:with-param>
  1. EXSLT
    1. Common (exsl)
    2. Math (math)
    3. Regular expressions (regexp)
    4. Sets (set)
    5. Strings (str)
  1. Functions
    1. boolean
    2. ceiling
    3. choose
    4. concat
    5. contains
    6. count
    7. current
    8. document
    9. element-available
    10. false
    11. floor
    12. format-number
    13. function-available
    14. generate-id
    15. id
    16. key
    17. lang
    18. last
    19. local-name
    20. name
    21. namespace-uri
    22. normalize-space
    23. not
    24. number
    25. position
    26. round
    27. starts-with
    28. string
    29. string-length
    30. substring
    31. substring-after
    32. substring-before
    33. sum
    34. system-property
    35. translate
    36. true
    37. unparsed-entity-url
  1. Axes

目录

  • Syntax
  • Specifications
  • Gecko support

true

The true function returns a boolean value of true.

Syntax

true()

Return value

Boolean true.

Specifications

XPath 1.0 4.3

Gecko support

Supported.

MDN Web 中文网 - 粤ICP备13048890号