-InjectionResolver

そして、ノードレゾルバの復活。ただし名前と引数が昔のとは違います。

SpecificationNode getNode(
    Template template, SpecificationNode original);

用意する実装は、以下のように。

  • CompositeInjectionResolver
    • DirectInjectionResolver テンプレート埋め込み情報
    • CompositeInjectionResolver
      • RegexpInjectionResolver IDの正規表現[拡張]
      • XPathInjectionResolver XPathによる[拡張]
    • EqualsIDInjectionResolver ID完全一致
    • ElementInjectionResolver HTML/XHTML単純ノード

こんな感じで作ることを予定。で、このレゾルバの非nullの返りを、ProcessorResolverに渡します。と、カスタマイズフリーにはしますが、おそらくこれはいじらないところでしょう。上記5個をやったら、容易にほかにアイディアが出てこない。