I would like to have a program that takes an input like:

<html xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; version="1.0" xmlns="
http://www.w3.org/1999/xhtml"; xml:lang="en">
 <xsl:element name="auth">
   <xsl:attribute name="user"><xsl:processing-instruction
name="php">print($user)</xsl:processing-instruction></xsl:attribute>
 </xsl:element>
</html>

And would output a document like:

<html xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; version="1.0" xmlns="
http://www.w3.org/1999/xhtml"; xml:lang="en">
 <auth user="<?php print($user) ?>" />
</html>

Can anyone here tell me how difficult this would be? What classes should I
look at modifying?

I've been looking though the codebase, but there's quite a bit of it. If I
run that template through the xslt processor currently, the processing
instruction in the attribute is simply dropped (the attribute comes out with
no value). Where does that happen? Is it when the stylesheet is compiled or
when the result is serialized?

Will Holcomb

Reply via email to