On Thursday 01 September 2005 12:25 pm, Christian Neukirchen wrote:
> Did you try ml.xsl :variable, "name" => "cats" 

Ah, that works great. (How can I not have tried that...?)

> xml.tag! "apply-templates"

Yep, that's good.

> xml.xsl :stylesheet, "version" => "1.0" do
> xml.xsl "apply-templates", "select" => "cats" do
> ...
> end
> end

Ah, do, instead of a { |block| }...

Alas, it gives me:
xsl:stylesheet version="1.0">
  <xsl select="cats">apply-templates</xsl>
</xsl:stylesheet>


But it led me to this hack:

xml.xsl :stylesheet, "version" => "1.0" do
  xml.tag! 'xsl:apply-templates select="cats"'
end

Which works!


Thanks a bunch!

Other responses on how to do this better still happily accepted :-).


Thanks,
Keith