XSLT 言語を使用するためのガイド/例/「方法」を探しています。
すべての HTML 言語と、より少ない XSLT タグと関数を組み合わせることで、言語のデフォルトを HTML として使用できます。
HTML 言語に基づく XSLT 言語のタグ、属性、関数などをいくつか追加するだけ (デフォルトのコードヒントを置き換えたり削除したりしない) できますか?
これらのいくつかのタグと属性は、私が収集しました (そして私の仕事のために変更しました):
タグ:
{
"xsl:apply-templates": { "attributes": ["mode", "select"] },
"xsl:attribute": { "attributes": ["name"] },
"xsl:call-template": { "attributes": ["name"] },
"xsl:choose": { "attributes": [] },
"xsl:copy": { "attributes": ["use-attribute-sets"] },
"xsl:for-each": { "attributes": ["select"] },
"xsl:if": { "attributes": ["test"] },
"xsl:otherwise": { "attributes": [""] },
"xsl:param": { "attributes": ["name", "select"] },
"xsl:sort": { "attributes": ["case-order", "data-type", "order", "select"] },
"xsl:template": { "attributes": ["match", "mode", "name"] },
"xsl:text": { "attributes": ["disable-output-escaping"] },
"xsl:value-of": { "attributes": ["disable-output-escaping", "select"] },
"xsl:variable": { "attributes": ["name", "select"] },
"xsl:when": { "attributes": ["test"] },
"xsl:with-param": { "attributes": ["name", "select"] }
}
属性:
{ "xsl:apply-templates/mode": { "attribOption": ["Render", "Copy"] },
"xsl:apply-templates/select": { "attribOption": ["@*|node()"] },
"xsl:attribute/name": { "attribOption": ["class", "style"] },
"xsl:copy/use-attribute-sets": { "attribOption": ["@|*node"] },
"xsl:if/test": { "attribOption": ["count() > 0"] },
"xsl:sort": { "attribOption": ["case-order", "data-type", "order", "select"] },
"xsl:template/match": { "attribOption": ["@*|node()"] },
"xsl:template/mode": { "attribOption": ["Render", "Copy"] },
"xsl:text/disable-output-escaping": { "attribOption": ["yes","no"], "type": "boolean" },
"xsl:value-of/disable-output-escaping": { "attribOption": ["yes","no"], "type": "boolean" },
"xsl:when/test": { "attribOption": ["count() > 0"] }
}