Go Back   CodingForums.com > :: Client side development > XML

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 06-30-2010, 07:44 PM   PM User | #1
oompa_l
New Coder

 
Join Date: Jun 2010
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
oompa_l is an unknown quantity at this point
advice about XML, XSLT

I have a simple database that I have mapped with XML. In dreamweaver I have made an XSLT page that when I "preview" pumps out html. Is there another workflow whereby the html is generated server or client side? When I publish my website, what am I actually uploading, the XSLT and XML or the HTML that the XSLT has pumped out?
oompa_l is offline   Reply With Quote
Old 06-30-2010, 10:37 PM   PM User | #2
byuhobbes85
Regular Coder

 
byuhobbes85's Avatar
 
Join Date: Oct 2006
Location: Ames, Iowa, USA
Posts: 116
Thanks: 9
Thanked 4 Times in 4 Posts
byuhobbes85 is an unknown quantity at this point
This seems more like a Dreamweaver question than an XML question. But I'll do my best...

XSL transformations can be done either on the server side or the client side. I have used PHP's XSL processing classes before, but I typically let the client's browser handle the XSL processing. If you haven't explicitly written any server side code, I assume Dreamweaver will simply publish the XML and XSL files. These will then be converted into HTML by each user's browser.
__________________
-- </byuhobbes>
byuhobbes85 is offline   Reply With Quote
Old 06-30-2010, 10:49 PM   PM User | #3
oompa_l
New Coder

 
Join Date: Jun 2010
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
oompa_l is an unknown quantity at this point
right, but for some reason when i place a reference to the XSLT in my XML nothing happens when i open the XML page. The only thing that seems to generate anything is the XSLT page that I preview from Dreamweaver...why would that be?
oompa_l is offline   Reply With Quote
Old 06-30-2010, 10:56 PM   PM User | #4
byuhobbes85
Regular Coder

 
byuhobbes85's Avatar
 
Join Date: Oct 2006
Location: Ames, Iowa, USA
Posts: 116
Thanks: 9
Thanked 4 Times in 4 Posts
byuhobbes85 is an unknown quantity at this point
Could you post your XML file...or at least the relevant part where you link to the XSLT file? For someone that doesn't use Dreamweaver much, it's hard to imagine what's going on withot seeing the code.

I tend to shy away from development environments. They can no doubt be useful, but until I've gotten very comfortable with a certain technology, I'm not convinced the extra work is worth the benefit I gain.
__________________
-- </byuhobbes>
byuhobbes85 is offline   Reply With Quote
Old 06-30-2010, 11:02 PM   PM User | #5
oompa_l
New Coder

 
Join Date: Jun 2010
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
oompa_l is an unknown quantity at this point
website.zip

hope that worked...thanks!
oompa_l is offline   Reply With Quote
Old 06-30-2010, 11:11 PM   PM User | #6
byuhobbes85
Regular Coder

 
byuhobbes85's Avatar
 
Join Date: Oct 2006
Location: Ames, Iowa, USA
Posts: 116
Thanks: 9
Thanked 4 Times in 4 Posts
byuhobbes85 is an unknown quantity at this point
Well, I opened up the XML file (Firefox 3.6, Mas OS X) and used the Web Development toolbar to view the generated source of the page (if you do the normal "View Source" it will just show you the XML). I saw a jumble of HTML and JavaScript, so it appears that the transformation is working. Why it doesn't look like you want it to, I'm not sure...
__________________
-- </byuhobbes>
byuhobbes85 is offline   Reply With Quote
Old 06-30-2010, 11:16 PM   PM User | #7
oompa_l
New Coder

 
Join Date: Jun 2010
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
oompa_l is an unknown quantity at this point
er um...sorry...i guess i just dont get google chrome. yes, it appears to be working in safari...
oompa_l is offline   Reply With Quote
Reply

Bookmarks

Tags
html, xml, xslt

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:51 AM.


Advertisement
Log in to turn off these ads.