Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    New Coder
    Join Date
    Jun 2010
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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?

  • #2
    Regular Coder byuhobbes85's Avatar
    Join Date
    Oct 2006
    Location
    Ames, Iowa, USA
    Posts
    116
    Thanks
    9
    Thanked 4 Times in 4 Posts
    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>

  • #3
    New Coder
    Join Date
    Jun 2010
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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?

  • #4
    Regular Coder byuhobbes85's Avatar
    Join Date
    Oct 2006
    Location
    Ames, Iowa, USA
    Posts
    116
    Thanks
    9
    Thanked 4 Times in 4 Posts
    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>

  • #5
    New Coder
    Join Date
    Jun 2010
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts
    website.zip

    hope that worked...thanks!

  • #6
    Regular Coder byuhobbes85's Avatar
    Join Date
    Oct 2006
    Location
    Ames, Iowa, USA
    Posts
    116
    Thanks
    9
    Thanked 4 Times in 4 Posts
    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>

  • #7
    New Coder
    Join Date
    Jun 2010
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts
    er um...sorry...i guess i just dont get google chrome. yes, it appears to be working in safari...


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •