こんにちは私は以下のxmlコードを持っています。
<toc-div>
<toc-item num="1.">
<toc-title>Introduction</toc-title>
<toc-pg>2.001</toc-pg>
</toc-item>
<toc-item num="(a)">
<toc-title>Transitional arrangements</toc-title>
<toc-pg>2.003</toc-pg>
</toc-item>
<toc-item num="(b)">
<toc-title>Classifying by numbers</toc-title>
<toc-pg>2.006</toc-pg>
</toc-item>
<toc-item num="2.">
<toc-title>Incorporation</toc-title>
<toc-pg>2.009</toc-pg>
</toc-item>
</toc-div>
ここで、tocアイテムに番号がある場合はxsltで1として出力し、それ以外の場合は2にします。方法を教えてください。条件を使用できることは知っていますが、ノードに数値が含まれている場合にそのステートメントを作成する方法を知りたいです。
ありがとう