I tried that as well and got:
The root element of the rendered document was <smbxml>, not <html>. A root element of <html> is needed when linking JavaScript and stylesheet resources.

I'm not trying to render any javascript or stylesheets--at least not on purpose.

In my .java file I have:
@Meta("tapestry.response-content-type=text/xml")
public class EventXML {

To try to tell it to use xml instead of html for the content type.

Is there a setting I'm missing somewhere?

Thanks for your help.

Mark

On Nov 18, 2008, at 11:07 AM, Howard Lewis Ship wrote:

<t:container> is intended for components that need to render more than
one "root" element.  Try:
-
<?xml version="1.0" encoding="UTF-8" ?>

<!DOCTYPE smbxml SYSTEM "http://www.netledger.com/xml/dtd/ smb_4_11.dtd">

<smbxml xmlns:t="http://tapestry.apache.org/schema/ tapestry_5_0_0.xsd">

<t:loop source="sequenceList" value="aSequence">

...snip...

</t:loop>

</smbxml>

On Tue, Nov 18, 2008 at 7:59 AM, Mark W. Shead <[EMAIL PROTECTED]> wrote:
I have a page that needs to render as xml.  I see that there was a
patch applied to do this, but I can't seem to bring in the tapestry
name space in order to get loop components, etc. to work. Does anyone
have an example showing how this should work?

https://issues.apache.org/jira/browse/TAPESTRY-1600 being fixed seems
to indicate that this should be possible, but I'm not seeing exactly
how to implement it.

Mark

More info:
Here is my xml template file:

<?xml version="1.0" encoding="UTF-8" ?>

<!DOCTYPE smbxml SYSTEM "http://www.netledger.com/xml/dtd/smb_4_11.dtd ">

<t:container xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd ">

<smbxml>

<t:loop source="sequenceList" value="aSequence">

...snip...

</t:loop>

</smbxml>

</t:container>

This doesn't work because it expects an html tag.  I'm guessing that
might be something that is coming from the t:container tag. I've tried
a bunch of other ways of getting the tapestry namespace in, but they
either don't work or it complains about not having an HTML element.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Howard M. Lewis Ship

Creator Apache Tapestry and Apache HiveMind

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to