I have a question and a complaint:
Question:
How would I make the transformation display properly in the WYSIWYG editor as if it would in when you publish it?
Complaint:
I couldn't find much documentation at all about extensions that use transformations in the wiki. I searched several times as well as looked through most every logical 'directory' in the wiki.

Code so far:
Code:
<extension>
<title>Note</title>
<description>Displays a Note</description>
<namespace>content</namespace>
<function transform="p">
    <name>note</name>
    <description>Makes the section a note.</description>
    <param name="content" type="str">Content of the section.</param>
    <return>
    <html xmlns:eval="http://mindtouch.com/2007/dekiscript">
        <head>
        </head>
        <body>
            <div style="font-family: Times New Roman; margin:20px; padding:10px; border:1px solid black; background-color: #FFFABA; margin-left:80px; margin-right:40px;">
                <div style="float:left; font-weight:bold;text-decoration:underline;">Note:</div>
                <eval:expr>web.html(args.content); </eval:expr>
            </div>
        </body>
        <tail>
        </tail>
    </html>
    </return>
</function>
</extension>
Screen Shot: