SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    Web Genius
    Join Date
    Nov 2001
    Location
    Canada
    Posts
    708
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    XML, XSL, XHTML? What goes where!

    Ok I'm lost with all these new web technologies.
    Can you use all three together or would that make no sense!


    Here is what I understand:

    XML = store and structure raw data
    XSL = format the look and style of the data (style sheet)
    XHTML = new version of HTML that should be used

    If I make a site that has the data stored in XML and then formatted in XSL, could I output it in XHTML or does that not make sense?

    Please clarify for me!

    Thanks!

  2. #2
    Sultan of Ping jofa's Avatar
    Join Date
    Mar 2002
    Location
    SvÝ■jˇ­
    Posts
    4,080
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by ramprage
    If I make a site that has the data stored in XML and then formatted in XSL, could I output it in XHTML or does that not make sense?
    Makes sense


    Except that xml should be a "new" web technology, since it's more than 5 years old

  3. #3
    SitePoint Guru
    Join Date
    Sep 1999
    Location
    Singapore
    Posts
    854
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    XML - yes, but personally I'm only using it as a data transfer medium. A DBMS is still more efficient at storage.

    XSL - close. There are in fact three parts under the XSL umbrella. XSL-FO, XPath and XSLT. XSL-FO (Formatting Objects) is the one which does the presentation.

    XHTML - yes. Probably be helpful to think of it as HTML 4.01 with XML rules applied.

  4. #4
    Non-Member
    Join Date
    Jan 2003
    Posts
    5,748
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    A DBMS is still more efficient at storage.
    Umm... Not always; You could use XML as a storage medium if the data was to remain static; ie no changes, such in an archive - thus saving resources as one example I can think off.

  5. #5
    The doctor is in... silver trophy MarcusJT's Avatar
    Join Date
    Jan 2002
    Location
    London
    Posts
    3,509
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    And you can keep an XML document in memory as a FreeThreaded DOM, with vastly superior querying performance to a database (depending on what you're doing, of course).

    And you can "format" XHTML output using plain XSLT (with CSS, or old-style FONT tags if you must :rolleye: ) without having to use XSL-FO (I've NEVER used it).
    MarcusJT
    - former ASP web developer / former SPF "ASP Guru"
    - *very* old blog with some useful ASP code

    - Please think, Google, and search these forums before posting!

  6. #6
    SitePoint Guru
    Join Date
    Sep 1999
    Location
    Singapore
    Posts
    854
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Point taken. I don't work with static data sets, thus my skewed world view.

    As for the XSL-FO, I've only used it for one project, during my internship. CSS is the way to go.

  7. #7
    The doctor is in... silver trophy MarcusJT's Avatar
    Join Date
    Jan 2002
    Location
    London
    Posts
    3,509
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Then we are agreed!
    MarcusJT
    - former ASP web developer / former SPF "ASP Guru"
    - *very* old blog with some useful ASP code

    - Please think, Google, and search these forums before posting!


Bookmarks

Posting Permissions

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