<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt">Well, as Catalyst works under MVC model, I thought that a best practice would be to use a view module although in this case, obiously, the view task is insignificant.<br><div>&nbsp;</div>David<div><br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;">De:</span></b> "Mesdaq, Ali" &lt;amesdaq@websense.com&gt;<br><b><span style="font-weight: bold;">Para:</span></b> The elegant MVC web framework &lt;catalyst@lists.scsys.co.uk&gt;<br><b><span style="font-weight: bold;">Enviado:</span></b> vie,5 marzo, 2010 19:04<br><b><span style="font-weight: bold;">Asunto:</span></b> RE: [Catalyst] Best practices: XML
 output from static XML<br></font><br>


 
 
 
 
 

<style>
<!--
 
 _filtered {font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;




}
 _filtered {font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;




}
 
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {


margin:0in;
margin-bottom:.0001pt;

font-size:12.0pt;
font-family:"serif";
}
a:link, span.MsoHyperlink
        {

color:blue;
text-decoration:underline;
}
a:visited, span.MsoHyperlinkFollowed
        {

color:purple;
text-decoration:underline;
}
p
        {


margin-right:0in;

margin-left:0in;

font-size:12.0pt;
font-family:"serif";
}
span.EmailStyle18
        {




font-family:"sans-serif";




color:#1F497D;}
.MsoChpDefault
        {

font-size:10.0pt;

}
 _filtered {
margin:1.0in 1.0in 1.0in 1.0in;


}
div.Section1
        {}
-->
</style>



<div class="Section1">

<p class="MsoNormal"><span style="font-size: 11pt; font-family: &quot;sans-serif&quot;; color: rgb(31, 73, 125);">Maybe I am missing
something but why is a view needed? If you are serving up a static file and its
xml why don’t you just serve that file statically based on path? Is the header
content-type not getting set properly for that file?</span></p> 

<p class="MsoNormal"><span style="font-size: 11pt; font-family: &quot;sans-serif&quot;; color: rgb(31, 73, 125);"> &nbsp;</span></p> 

<div>

<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;sans-serif&quot;; color: rgb(31, 73, 125);">Thanks,</span></p> 

<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;sans-serif&quot;; color: rgb(31, 73, 125);">------------------------------------------</span></p> 

<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;sans-serif&quot;; color: rgb(31, 73, 125);">Ali
Mesdaq (CISSP, GIAC-GREM)</span></p> 

<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;sans-serif&quot;; color: rgb(31, 73, 125);">Sr.
Security Researcher</span></p> 

<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;sans-serif&quot;; color: rgb(31, 73, 125);">Websense
Security Labs</span></p> 

<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;sans-serif&quot;; color: rgb(31, 73, 125);"><a rel="nofollow" target="_blank" href="http://www.websensesecuritylabs.com/"><span style="">http://www.WebsenseSecurityLabs.com</span></a></span></p> 

<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;sans-serif&quot;; color: rgb(31, 73, 125);">------------------------------------------</span><span style="font-size: 11pt; font-family: &quot;sans-serif&quot;; color: rgb(31, 73, 125);"></span></p> 

</div>

<p class="MsoNormal"><span style="font-size: 11pt; font-family: &quot;sans-serif&quot;; color: rgb(31, 73, 125);"> &nbsp;</span></p> 

<div>

<div style="border-width: 1pt medium medium; border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; padding: 3pt 0in 0in;">

<p class="MsoNormal"><b><span style="font-size: 10pt; font-family: &quot;sans-serif&quot;;">From:</span></b><span style="font-size: 10pt; font-family: &quot;sans-serif&quot;;"> David [mailto:oldskiffle@yahoo.es] <br>
<b>Sent:</b> Friday, March 05, 2010 5:10 AM<br>
<b>To:</b> catalyst@lists.scsys.co.uk<br>
<b>Subject:</b> [Catalyst] Best practices: XML output from static XML</span></p> 

</div>

</div>

<p class="MsoNormal"> &nbsp;</p> 

<div>

<p class="MsoNormal"><span style="">Hi,<br>
<br>
I need to generate an XML output (Content-type: application/xml), but this XML
output is the XML content which is stored in an XML file. I don't need to
dinamically generate this XML content. <br>
I have searched in google but I don't find any catalyst view module for
managing this case. I don't know if exists any module for generating XML output
from a static file as, for example, Catalyst::View::XSLT module (<a rel="nofollow" target="_blank" href="http://search.cpan.org/%7Ejanus/Catalyst-View-XSLT-0.08/lib/Catalyst/View/XSLT.pm">http://search.cpan.org/~janus/Catalyst-View-XSLT-0.08/lib/Catalyst/View/XSLT.pm</a>)
does. That is, generate an output from a static file, in this case, an XML
output.<br>
<br>
I am not finding much information about designing your own views in Catalyst,
or at least, I don't see much flexibility. All examples I have found need to be
generated, through the helper view, with TT template or any other templates.<br>
Is it possible to create your own view, with no template, and for example, in
my case, read the output from a static file and send this output to the client?
(I don't know exactly how Views works in Catalyst, though I have already read
Catalyst tutorial and cookbook)<br>
<br>
Thanks in advanced,<br>
<br>
<br>
David</span></p> 

<div>

<p class="MsoNormal"><span style=""> &nbsp;</span></p> 

</div>

</div>

<p class="MsoNormal" style="margin-bottom: 12pt;"><span style=""><br style="">
<br style="">
<span style="background: none repeat scroll 0% 0% white;"></span></span></p> 

<p style="text-align: center;" align="center"><span style="background: none repeat scroll 0% 0% white;">Click <a rel="nofollow" target="_blank" href="https://www.mailcontrol.com/sr/wQw0zmjPoHdJTZGyOCrrhg==">here</a>
to report this email as spam.</span></p> 

</div>

<br><br>
<p align="center"><span>Protected by Websense&nbsp;Hosted Email&nbsp;Security — <a target="_blank" href="http://www.websense.com">www.websense.com</a></span></p>
</div></div>
</div><br>



      </body></html>