PDA

View Full Version : advice about XML, XSLT


oompa_l
06-30-2010, 07:44 PM
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?

byuhobbes85
06-30-2010, 10:37 PM
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.

oompa_l
06-30-2010, 10:49 PM
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?

byuhobbes85
06-30-2010, 10:56 PM
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.

oompa_l
06-30-2010, 11:02 PM
8677

hope that worked...thanks!

byuhobbes85
06-30-2010, 11:11 PM
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...

oompa_l
06-30-2010, 11:16 PM
er um...sorry...i guess i just dont get google chrome. yes, it appears to be working in safari...