Re: [PHP] Re: About PHP/XML/XSLT/MYSQL Web Sites



Although it is necessary to convert SQL data into XML before it can be
processed in an XSL transformation, it is a waste of time converting user
input into XML before it is added to the database as none of the
SELECT/INSERT/UPDATE/DELETE commands can work with XML files. It is far
easier to take the GET/POST array and convert it into an sql query
directly
without any intermediate XML.

This is what i have been trying to express to OP. Also, i havent had time
to
fully explore your application framework, but i have had a glimpse at it. i
really appreciate your explanation of modularizing the xsl templates as i
was
struggling to grasp this with my limited exposure to xsl.
i read up about you on your site and discovered you had been using xsl prior
to php. i am the reverse of that, so while ive been using php for a few
years
now xsl is still very new to me.
your documentation and articles are quite excellent. i hope you dont mind
if i
ask a couple questions in the future myself :)

-nathan

On 7/13/07, Tony Marston <tony@xxxxxxxxxxxxxxxxxxxxxxxx> wrote:

Although it is necessary to convert SQL data into XML before it can be
processed in an XSL transformation, it is a waste of time converting user
input into XML before it is added to the database as none of the
SELECT/INSERT/UPDATE/DELETE commands can work with XML files. It is far
easier to take the GET/POST array and convert it into an sql query
directly
without any intermediate XML.

FYI a complete framework which creates all HTML using XML+XSL has already
been built, and is described at
http://www.tonymarston.net/php-mysql/infrastructure.html#figure5, with a
working sample application which is described in and can be downloaded
from
http://www.tonymarston.net/php-mysql/sample-application.html

--
Tony Marston
http://www.tonymarston.net
http://www.radicore.org

"Kelvin Park" <kelvinpark86@xxxxxxxxx> wrote in message
news:46969A0F.7000706@xxxxxxxxxxxx
> I'm trying to setup a XSLT based web site.
> I wasn't exactly sure about the flow of the whole system when data from
> relational database is transferred to XML and in turn the data inputted
> from the user is relayed back to the database through XML (or directly
> to the database with PHP DB connection). I built a flowchart
> illustrating what the flow of the XSLT/PHP/MYSQL system might be like.
> If you think it's the wrong way or an inefficient way of getting user
> inputted data back to mysql, I would appreciate any comments.
> If you cannot download the PDF file, you can bring it up with direct
> address the the file: http://www.envigan.net/CMSFLOW.pdf
>
>

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Relevant Pages

  • Re: Php5 - xsl extension not working
    ... I have enabled the xsl extension - php_xsl.dll - in php.ini and indeed, when I look at phpinfo I see all the needed libraries are enabled. ... In most projects, I'd say the conversion database -> XML -> HTML would be an unnecessary step, and database -> HTML is just a lot less overhead. ...
    (comp.lang.php)
  • Re: XML over CSS
    ... abstraction from the database using database objects. ... The first tier is database access. ... the data given to us by an XML string with an XSL file at this tier. ... XSL is more of a presentation language than a programming language. ...
    (comp.lang.php)
  • Re: DISCOVER_XML_METADATA
    ... expansion of ASSL XML returned by the server. ... You could do ExpandObject for the server in step 1. ... you could request ExpandObject for that database -- this is step ... all cubes and nothing else. ...
    (microsoft.public.sqlserver.olap)
  • Re: Preservation of namespace prefixes in XML datatype
    ... representation well beyond merely preserving the logical meaning. ... > Now the ANSI/ISO SQL-2003 standard makes it pretty clear that the XML ... all the guarantee the database gives you is that we preserve the ... >> makes changes in namespace prefixes, will I the user/developer have the ...
    (microsoft.public.sqlserver.xml)
  • Re: onclick - reassign new function with parameters after displaye
    ... It creates an HTML document which looks and acts correctly. ... The orginal XSL is creating a record that shows data from two different ... The form reads in those global variables. ... XML Node that forms the context of your little XSL. ...
    (microsoft.public.scripting.jscript)

Loading