ms:type-local-name([node-set]) 함수
제공된 노드 집합에서 현재 노드 또는 문서 순서상 첫 번째 노드의 XSD 형식의 정규화되지 않은 이름을 반환합니다.
string ms:type-local-name([node-set])
설명
단순 형식에 대해 type-local-name
함수는 "ID", "ENTITY" 등의 이름을 반환합니다. name
특성이 지정된 복합 XSD 형식에 대해 type-local-name
함수는 "Class"와 같이 정규화되지 않은 이름을 반환합니다. 이름이 없는 형식을 사용할 경우 이 함수는 빈 문자열을 반환합니다.
다음 샘플 식에서는 XSD 기본 제공 데이터 형식이 "string"인 모든 노드를 선택합니다.
"//*[ms:type-local-name()='string')]"
예제
다음 예제에서는 XSLT 템플릿 규칙을 사용하여 books.xml의 모든 요소를 선택하고 books.xsd에 정의된 대로 요소 데이터 형식을 출력합니다.
XML 파일(books.xml)
books.xml을 사용합니다.
XSD 파일(books.xsd)
books.xsd를 사용합니다.
XSLT 파일(books.xslt)
HTML 파일(books.html)
HTML 파일에는 XML, XSLT 및 XSD 파일 로드를 처리하는 JScript가 포함됩니다.
출력
x:catalog is of
book is of
author is of string
Gambardella, Matthew
title is of string
XML Developer's Guide
genre is of string
Computer
price is of float
44.95
publish_date is of date
2000-10-01
description is of string
An in-depth look at creating applications with XML.
x:catalog
및 book
요소는 이름이 없는 형식을 사용합니다.