プロセッサレゾルバ

レゾルバで捕まえたタグ名ってどうやって取ればいいんだろう・・・
属性はspecificationNode.iterateAttribute()で簡単に取れるんだけど。


下記のように書いてある場合

.html
<span id="test"/>

.maya
<custom mayaID="test" att1="value1"/>

このときIDの埋め込まれたタグ名(ここではspan)が取りたい。


何を作ろうとしてるかと言いますと。

.html
<table>
  <tr>
    <td id="num">項目1</td>
  </tr>
  <tr>
    <td>項目2</td><td>項目3</td>
  </tr>
</table>

.maya
<hijack mayaID="num" colspan="${num}"/>

出力
<table>
  <tr>
    <td colspan="2">項目1</td>
  </tr>
  <tr>
    <td>項目2</td><td>項目3</td>
  </tr>
</table>

のような感じで、マジックカスタムタグの属性を全て元のタグに追加するものです。