From: Christian Neukirchen Date: 2005-09-02T05:08:42+09:00 Subject: Re: Builder Question Keith Fahlgren writes: >> 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"> > apply-templates > Interesting... oh, I forgot a : xml.xsl :stylesheet, "version" => "1.0" do xml.xsl :"apply-templates", "select" => "cats" do ... #^^^ end end > But it led me to this hack: > > xml.xsl :stylesheet, "version" => "1.0" do > xml.tag! 'xsl:apply-templates select="cats"' > end > > Which works! Really a hack. Yuck. ;-) > Thanks a bunch! You're welcome. > Keith -- Christian Neukirchen http://chneukirchen.org