<source> 要素には次の属性があります。
type – 必須属性で、指定されたファイル内に含まれる変換のタイプ。次の値が使用できます。
PERL – <subst> 要素による変換に類似した Perl に似た変換。この場合、指定されるファイルは以下のような形式をとる必要があります。
<?xml version='1.0'?> <transform> <subst match="127\.0\.0\.(\d+)" replace="10.10.0.$1"/> </transform> |
Perl 型の外部変換ファイルは、任意の数の <subst> 要素を含むことができます。
XSLT – XSLT 変換。この場合、指定されたファイルには、名前空間 http://www.w3.org/1999/XSL/Transform で定義されているように、標準の XSLT バージョン 1.0 変換が含まれます。XSLT <stylesheet> 要素しか許可しないインライン変換と異なり、外部ソースファイルに含まれる XSLT 変換は任意の有効な最上位 XSLT 変換要素を含むことができます。このような要素としては、 <stylesheet>、<transform>、および単純化された XSLT 構文などが該当します。単純化された XSLT 構文は、XSLT 仕様の節 2.3 で説明されています。
name – 必須属性で、変換を含む、ターゲットホスト上のファイルの名前。ファイルのコンテンツは、「type」属性で定義された型に一致する必要があります。この名前は、ディレクトリ要素として zip アーカイブを含むことはできません。この属性は、単純置換変数を参照できます。