--- title: substring-before slug: Web/XPath/Functions/substring-before tags: - XSLT_Reference translation_of: Web/XPath/Functions/substring-before ---
{{ XsltRef() }}
substring-before
함수는 첫 번째 인수에서 두 번째 인수가 나타난 앞의 나머지를 반환합니다.
substring-before(haystack ,needle )
haystack
needle
haystack
에서
needle
의 첫 출현 앞의 문자열이 반환됩니다.문자열.
XSL 예:
<xsl:value-of select="substring-before('1999/04/01','/')" />
출력
1999
지원함.