> Ok..,
> si i've managed to get the head elements working but now I can't get
> the body elements to be processed by forms-samples-styling.xsl and the
> html output I get for the jx part of the body section is:
> <snip...>
Hi Andrew... OK, how do you know that <body> isn't being processed?
The body in itself is being processed, but as I mentioned, the JX part of my page, which is the form itself, is not being processed properly at all.
Also —what is the namespace for your form template elements? Whatever
it's supposed to be, typically we use the prefix 'ft' to denote it, so
I think we should not be seeing something <form-template> here... it
would be <ft:form-template> if the document was somehow getting past
the forms stylesheets.
The namespace I am using for the form is as per convetion, <ft:form-template>, and the html output,. as shown, reads as <form-template>. This I do not understand at all!
The result you posted looks as though you have
HTML elements and forms template elements are both in the default
namespace...?
Yes I have some html inside the form namespace. My XSL snippet is as sfollows:
<?xml version="1.0" encoding="ISO-8859-1"?>
<page
xmlns:jx=" http://apache.org/cocoon/templates/jx/1.0"
xmlns:cinclude="http://apache.org/cocoon/include/1.0"
xmlns:ft="http://apache.org/cocoon/forms/1.0#template"
xmlns:fi="http://apache.org/cocoon/forms/1.0#instance ">
<jx:import uri="resource://org/apache/cocoon/forms/generation/jx-macros.xml"/>
<login_fields>
<jx:choose>
<jx:when test="${userGlobal==null}">
<ft:form-template action="" name="Form1" method="POST" ajax="true">
<ft:continuation-id/>
<div id="output">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="55" valign="bottom"><img src="" width="55" height="16" /></td>
<td width="220" valign="top">
<fi:group>
<fi:styling type="tabs"/>
<fi:state>
<ft:widget id="activetab" />
</fi:state>
<fi:items>
<ft:widget id="username">
<fi:styling size="30" type="text" class="keyinbox"/>
</ft:widget>
</fi:items>
</fi:group>
</td>
</tr>
</table>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="55" valign="bottom"><img src="" width="89" height="16" /></td>
<td width="220" valign="top">
<fi:group>
<fi:styling type="tabs" />
<fi:state>
<ft:widget id="activetab" />
</fi:state>
<fi:items>
<ft:widget id="password">
<fi:styling size="30" type="password" class="keyinbox"/>
</ft:widget>
</fi:items>
</fi:group>
</td>
</tr>
</table>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="6" align="right"><img src="" width="2" border="0" height="5" /></td>
</tr>
<tr>
<td><img src="" width="3" border="0" height="1" /></td>
<td width="55" valign="bottom" class="indextext"><img src="" /></td>
<td width="220" valign="top">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="" width="3" border="0" height="1" /></td>
<td valign="top">
<fi:group>
<fi:styling type="tabs"/>
<fi:state>
<ft:widget id="activetab" />
</fi:state>
<fi:items>
<ft:widget id="captcha_code">
<fi:styling listbox-size="30" type="text" class="keyinbox"/>
</ft:widget>
</fi:items>
</fi:group>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="6" align="right"><img src="" width="2" border="0" height="10" /></td>
</tr>
<tr>
<td align="right">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td align="left" valign="bottom" class="indextext"><a href="" your Password?</a></td>
<td align="right"><img src="" width="8" height="14" /></td>
</tr>
</table>
</td>
<td width="8" align="left"><img src="" width="8" height="14" /></td>
<td width="42" align="left"><a href="" over.gif',1)"><img src="" alt="sumit" name="sumit" width="42" height="15" border="0" /></a></td>
<td width="42" align="center" valign="middle"><a href="" document.Form1)" src="" alt="cancel" name="cancel" width="42" height="15" border="0" /></a></td>
<td width="20" align="center" valign="middle"><img src="" width="20" height="8" /></td>
</tr>
</table>
</div>
</ft:form-template>
</jx:when>
regards
Andrew
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
