xslt を使用してテキスト ファイルを生成しています。xml 入力を渡すと、xslt は xml 入力をテキスト ファイルとして変換します。呼び出しごとにシーケンス番号を提供できますか。
そしてそれをいくつかの変数に格納します。
1)初めての実行で 1 つのテキスト ファイルが作成され、xslt ( <sequence>
) 内に変数があると仮定すると、以下のように番号 1 として割り当てる必要があります。
<sequence>1</sequence>
2) 2 回目の実行では、もう 1 つのテキスト ファイルが作成されるため、シーケンス変数が増加します。
<sequence>2<sequence>
3) 3回目の実行でもう1つテキストファイルが作成されるので、シーケンスはこのようになります
<sequence>3</sequence>
これは通常、Oracle データベースでシーケンスを作成し、xslt 内でそのシーケンスを呼び出し、実行ごとにシーケンスが増加することで実行できます。
<sequence>CallOracleSequence</sequence>
Oracleシーケンスを使用せずに提案してください。これをxslt内で処理できますか。