[ 
https://issues.apache.org/jira/browse/TAPESTRY-1600?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Fernando updated TAPESTRY-1600:
-------------------------------

    Attachment: namespace-support-20070806.diff

This is a patch to include namespace support in Tapestry 5 ( against 
5.0.6-SNAPSHOT ).

It maintains name,qname,uri for elements and attributes coming from a template.
Adds elementNS methods for writer and Element, but you can't add attributes 
with name,qname,uri (thought too many api changes). Though you can add 
attributes that use a prefix, as long as that prefix has been defined earlier.

It then prints out all elements/attributes using their qnames, and also passes 
through all xmlns attributes.

It currently swallows all xmlns attributes that point to the tapestry 5 schema.


> Cannot render XML from page templates: XML declaration and namespaces are 
> removed
> ---------------------------------------------------------------------------------
>
>                 Key: TAPESTRY-1600
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1600
>             Project: Tapestry
>          Issue Type: Bug
>    Affects Versions: 5.0.3, 5.0.4, 5.0.5
>            Reporter: David Peterson
>         Attachments: namespace-support-20070806.diff
>
>
> Rather than HTML, I want my page to return XML (it's an Atom feed). 
> I want this:
> <?xml version="1.0" encoding="UTF-8"?>
> <feed xmlns="http://www.w3.org/2005/Atom";>...</feed>
> But the response is being rendered like this:
> <feed>...</feed>
> There are two issues:
> - The XML declaration is missing
> - The Atom namespace is being stripped from the <feed> element

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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

Reply via email to