Re: [PHP] Spry, XML, PHP and XSLT Hell

2009-10-06 Thread Tommy Pham
- Original Message 
 From: Andrew Mason slackma...@gmail.com
 To: Nathan Nobbe quickshif...@gmail.com
 Cc: Matthew Croud m...@obviousdigital.com; PHP General list 
 php-general@lists.php.net
 Sent: Mon, October 5, 2009 8:56:12 PM
 Subject: Re: [PHP] Spry, XML, PHP and XSLT Hell
 
 On Tue, Oct 6, 2009 at 4:37 AM, Nathan Nobbe wrote:
  On Mon, Oct 5, 2009 at 10:10 AM, Matthew Croud wrote:
 
  Hello,
 
  Is there anyone here who uses Spry with XML and PHP and understands XSLT,
  At the moment i'm in development hell and have a rather bloated question to
  ask someone who is knowledgeable in the above areas.
 
  My head is about to explode and I can't find any answers,
  If there are Spry/XML folk here i'll spill the beans about my issue.
 
 
  ive not used spry, but have the rest of the lot.., hell, i think we can give
  it a crack..; lay it on us brother ;)
 
  -nathan
 
 
 I don't know what spry is but I use PHP and XSLT all the time.
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php

Spry is Adobe's AJAX framework similar to jQuery.  Are you having problems 
doing remote ajax call for xml data via Spry?


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



[PHP] Spry, XML, PHP and XSLT Hell

2009-10-06 Thread Matthew Croud


Okey Doke,

I'll try and be brief,
Well, my client agreed to a small online store that would hold the  
same stock items where only the quantities would differ, we agreed  
that, due to infrequent changes, I would make pages for any new items,  
and she would control stock etc using an e-shopping package I bought.


The site also has a page of Returned items, this takes the form of a  
Spry list, which uses an XML  list of clothing and their properties.

 It all worked great.

Yesterday my client said she wanted the ability to add, remove, edit  
new products by herself,  eek!
I thought about implementing another list similar to the returned  
items page, but I learned that XML will turn HTML elements like  and  
 into lt; and gt;


Then someone on this wonderful mailing list mentioned that HTML can be  
stored in XML using XSLT.


I suppose my question is, to what extend can XSLT decorate and display  
an XML file, can I add style sheets and rollovers, can I control the  
cacheing so that users wont need to empty their cache to see changed  
results ? Does it all work fine with PHP when I include it in a file ?


Sorry if this is a bit weird, but I'm bricking myself with this one,  
and I would just like to hear some voices from people who have been  
there and bought the t shirt,


Cheers folks!

Matt.



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



Re: [PHP] Spry, XML, PHP and XSLT Hell

2009-10-06 Thread Tommy Pham
- Original Message 
 From: Tommy Pham tommy...@yahoo.com
 To: PHP General list php-general@lists.php.net
 Sent: Tue, October 6, 2009 10:41:42 AM
 Subject: Re: [PHP] Spry, XML, PHP and XSLT Hell
 
 - Original Message 
  From: Matthew Croud 
  To: PHP General list 
  Sent: Tue, October 6, 2009 1:32:18 AM
  Subject: [PHP] Spry, XML, PHP and XSLT Hell
  
  
  Okey Doke,
  
  I'll try and be brief,
  Well, my client agreed to a small online store that would hold the same 
  stock 
  items where only the quantities would differ, we agreed that, due to 
 infrequent 
  changes, I would make pages for any new items, and she would control stock 
  etc 
 
  using an e-shopping package I bought.
  
  The site also has a page of Returned items, this takes the form of a Spry 
 list, 
  which uses an XML  list of clothing and their properties.
  It all worked great.
  
 
 If my memory serves, you're using PHP to generate the XML for Spry list using 
 data from DB backend?  Or is your data in XML file(s) and not DB?
 
  Yesterday my client said she wanted the ability to add, remove, edit new 
  products by herself,  eek!
  I thought about implementing another list similar to the returned items 
  page, 
  but I learned that XML will turn HTML elements like  and  into  and 
 
 You could add a unique URL (based on product ID) of each product ID to row in 
 the list.  The link would point to another page where your client can 
 add/update 
 the data.  Or if you really want to do AJAX way, clicking the link would show 
 a 
 hidden 
for add/update depending on what link is clicked.  Doing via AJAX 
 means you'll have to add some javascript code of your own to tell Spry to 
 refresh the data for the list and refresh the display results.
 

I forgot to mention that in addition to the javascript code, you still have to 
validate and sanitize user input in PHP.  So might as well just have the link 
point to another page and do it there.  Upon successful update, you can 
redirect back the Spry list page.

  
  Then someone on this wonderful mailing list mentioned that HTML can be 
  stored 
 in 
  XML using XSLT.
  
  I suppose my question is, to what extend can XSLT decorate and display an 
  XML 
  file, can I add style sheets and rollovers, can I control the cacheing so 
  that 
 
  users wont need to empty their cache to see changed results ? Does it all 
  work 
 
  fine with PHP when I include it in a file ?
 
 FYI, caching is messy when you may have concurrent users adding/updating the 
 data.
 
 Regards,
 Tommy
 
  
  Sorry if this is a bit weird, but I'm bricking myself with this one, and I 
 would 
  just like to hear some voices from people who have been there and bought 
  the t 
 
  shirt,
  
  Cheers folks!
  
  Matt.
  
  
  
  --PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php


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



Re: [PHP] Spry, XML, PHP and XSLT Hell

2009-10-05 Thread Nathan Nobbe
On Mon, Oct 5, 2009 at 10:10 AM, Matthew Croud m...@obviousdigital.comwrote:

 Hello,

 Is there anyone here who uses Spry with XML and PHP and understands XSLT,
 At the moment i'm in development hell and have a rather bloated question to
 ask someone who is knowledgeable in the above areas.

 My head is about to explode and I can't find any answers,
 If there are Spry/XML folk here i'll spill the beans about my issue.


ive not used spry, but have the rest of the lot.., hell, i think we can give
it a crack..; lay it on us brother ;)

-nathan


Re: [PHP] Spry, XML, PHP and XSLT Hell

2009-10-05 Thread Andrew Mason
On Tue, Oct 6, 2009 at 4:37 AM, Nathan Nobbe quickshif...@gmail.com wrote:
 On Mon, Oct 5, 2009 at 10:10 AM, Matthew Croud m...@obviousdigital.comwrote:

 Hello,

 Is there anyone here who uses Spry with XML and PHP and understands XSLT,
 At the moment i'm in development hell and have a rather bloated question to
 ask someone who is knowledgeable in the above areas.

 My head is about to explode and I can't find any answers,
 If there are Spry/XML folk here i'll spill the beans about my issue.


 ive not used spry, but have the rest of the lot.., hell, i think we can give
 it a crack..; lay it on us brother ;)

 -nathan


I don't know what spry is but I use PHP and XSLT all the time.

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