Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
xml ファイルと関連する xslt ファイルがあります。msxsl.exe を使用しており、コマンド ライン引数としてパラメーターを渡し、それを xslt ファイルで使用する必要があります。どうやってやるの???
指図:
msxsl.exe country.xml sheet.xslt -o country_sheet.html p1="india"
indiaxslt ファイルの値を取得する方法は?
india
これを試して
<xsl:param name="p1" select="p1"/>
これはテンプレートの外側にあり、グローバル変数のように機能します
はい、これのコンテンツを使用するには、テンプレート内でこれを使用できます
<xsl:value-of select="$p1"/>