You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Fernando (JIRA)" <de...@tapestry.apache.org> on 2007/09/05 18:41:34 UTC

[jira] Updated: (TAPESTRY-1600) Cannot render XML from page templates: XML declaration and namespaces are removed

     [ 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: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org