I want to attach an xslt stylesheet to an XML document that I build with XMLBuilder. This is done with a Processing Instruction that looks like
<?xml-stylesheet type='text/xsl' href='/stylesheets/style.xslt' ?>
Normally, I'd use the instruct!
method, but :xml-stylesheet
is not a valid Ruby symbol.
XMLBuilder has a solution for this case for elements using tag!
method, but I don't see the equivalent for Processing Instructions.
Any ideas?