[
https://issues.apache.org/jira/browse/TAPESTRY-1600?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Fernando updated TAPESTRY-1600:
-------------------------------
Attachment: namespace-support-586974.diff
New patch adding some more features for XML support!! Proper XML element
printing ( no more <br>, but only <br/> ), and support for CDATA elements.
1) Support for XMLMarkupModel. When when the page has:
@Meta("tapestry.response-content-type=text/xml")
a) MarkupModel now has a getDocumentHeader.
i. It is meant for XMLMarkupModel to output the XML Header: <?xml
versio="1.0"?>
ii. It will also output the Charset if set: <?xml version="1.0"
encoding="UTF-8"?>
2) Support for CDATA:
a) CDATA is handled as just a normal Text.
i. does not output CDATA sections, just what's inside.
ii. but we don't really care, since the output is valid: "<![CDATA[A<A]]>"
== "A<A"
iii. expansions (${expansion}) are now supported inside of CDATA sections.
b) CDATAToken has been removed, StartCdataToken, EndCdataToken added
i. to mark when cdata sections were started and ended in the input template
ii. in the case that we decide to do something with cdata outputting later,
but probably will not.
> 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
> Components: tapestry-core
> Affects Versions: 5.0.3, 5.0.4, 5.0.5
> Reporter: David Peterson
> Attachments: namespace-support-20070806.diff,
> namespace-support-20070813.diff, namespace-support-20070813b.diff,
> namespace-support-20071021.diff, namespace-support-586974.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]