use-attribute-sets
통사론
use-attribute-sets attribute-set-name;
묘사
속성 집합의 속성을 현재 요소에 추가합니다. 문은 use-attribute-sets
, , element
문 아래뿐만 아니라 일반 요소 아래attribute‑set
copy‑node
에서도 사용할 수 있습니다.
특성
attribute-set-name |
문을 사용하여 |
SLAX 예시
다음 예제에서는 두 개의 속성 집합table-attributes
(및 )을 table-attributes-ext
만듭니다. 집합은 table-attributes-ext
명령문을 사용하여 use-attributes-sets
집합에 table-attributes
이미 정의된 모든 속성을 포함합니다. 기본 스크립트 본문 table-attributes-ext
에서 특성 집합이 요소에 적용됩니다<table>
. 요소에는 <table>
, , cellpadding
, cellspacing
및 border
의 네 가지 속성이 order
포함됩니다.
version 1.1; var $cellpadding = "0"; var $cellspacing = "10"; attribute-set table-attributes { attribute "order" { expr "0"; } attribute "cellpadding" { expr $cellpadding; } attribute "cellspacing" { expr $cellspacing; } } attribute-set table-attributes-ext { use-attribute-sets table-attributes; attribute "border" { expr "0"; } } match / { ... <table> { use-attribute-sets table-attributes-ext; } }
릴리스 정보
Junos OS 릴리스 12.2 이상에서 지원되는 SLAX 언어 버전 1.1에서 소개된 명령문입니다.