Re: [SMARTY] xml, expat, smarty and scaling
| From: | Hardik Doshi | Date: | Mon, 14 Apr 2003 14:25:47 +0000 |
| Subject: | Re: [SMARTY] xml, expat, smarty and scaling | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-9245@lists.php.net to get a copy of this message | ||
Hi Michael,
I have a similar question. Currently i have started
working on XML+XSLT solution to seperate php code from
HTML. I had a two choices to perform seperation. first
one is smarty template engine written in php and
second one is xml+xslt technology. But because xml is
more standard i have selected xml+xslt soulution. Now
using xml+xslt has serveral scale issues. On every
request, server needs to create xml file from RDBMS
and parses that file with xsl style sheet using xslt
engine. I dont know it is the scaleble soultion.
Any thoughts??
Thanks
Hardik
--- Michael McFadden <mcfadden@optonline.net> wrote:
> Hi --
>
> I'm creating an application that reads in an xml
> stream, parses it using
> expat and formats the results using smarty. It seems
> to me I have two
> choices here: One is to accumulate all the xml data
> I need before pushing
> it off to a smarty template. The other is to format
> the data with multiple
> templates (in this case, three) as the document
> parses. From a design
> simplicity standpoint, a single template makes the
> most sense. However, I
> am concerned about how accumulating fairly large
> amounts of data in php
> arrays will scale vs. the additional io of the
> multiple template solution.
> Using expat to throw all the data into arrays seems
> to defeat the whole
> purpose of sax-style parsing.
>
> The xml files are about 11-14 KB, by the way.
>
> Any thoughts?
>
>
> Michael
>
>
>
> --
> Smarty General Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://tax.yahoo.com