is there standard file format that encapsulates xml+css in one file? (for use without an internet c

Discussion in 'XML' started by john schultz, Jun 5, 2004.

  1. john schultz

    john schultz Guest

    is there a standard file format that encapsulates some xml data and a
    stylesheet with which to display it in one file? ...and which doesn't
    require an internet connection. of course xml lets you reference a
    remote stylesheet with a url, but I'm looking for something that
    actually stores the stylesheet WITH the xml.

    any ideas?
     
    john schultz, Jun 5, 2004
    #1
    1. Advertisements

  2. john schultz () wrote:
    : is there a standard file format that encapsulates some xml data and a
    : stylesheet with which to display it in one file? ...and which doesn't
    : require an internet connection. of course xml lets you reference a
    : remote stylesheet with a url, but I'm looking for something that
    : actually stores the stylesheet WITH the xml.

    : any ideas?

    MIME can do that sort of thing (that's how html mail message are built
    that contain their own images).

    $0.02

    Presumably you could simply define a higher level xml document to do this
    if you wished.

    <complete-document>
    <style-sheet-stuff>
    -style sheet- stuff goes here-
    </style-sheet-stuff>
    <rest-of-document>
    -the original document goes here-
    </rest-of-document>
    </complete-document>

    And some things (html comes to mind) already allow their style sheets to
    be part of the document.
     
    Malcolm Dew-Jones, Jun 5, 2004
    #2
    1. Advertisements

  3. In article <>,
    (Malcolm Dew-Jones) writes:
    > john schultz () wrote:
    >: is there a standard file format that encapsulates some xml data and a
    >: stylesheet with which to display it in one file? ...and which doesn't
    >: require an internet connection. of course xml lets you reference a
    >: remote stylesheet with a url, but I'm looking for something that
    >: actually stores the stylesheet WITH the xml.
    >
    > And some things (html comes to mind) already allow their style sheets to
    > be part of the document.


    XHTML 1.0 or XHTML 1.1 (see w3.org).

    But be warned: HTML user agents are not required to support
    all CSS (e.g. display: property may be ignored).
     
    Victor Porton, Jun 5, 2004
    #3
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Arjen
    Replies:
    6
    Views:
    16,032
    S. Justin Gengo
    Aug 20, 2003
  2. news.frontiernet.net
    Replies:
    6
    Views:
    1,431
    news.frontiernet.net
    Apr 16, 2004
  3. Paul Lautman
    Replies:
    4
    Views:
    568
    Spartanicus
    Mar 27, 2006
  4. loveNUNO
    Replies:
    2
    Views:
    1,210
    loveNUNO
    Nov 20, 2003
  5. sachin
    Replies:
    1
    Views:
    489
    Tjerk Wolterink
    Dec 1, 2005
  6. Jenna Olson
    Replies:
    2
    Views:
    504
    Alf P. Steinbach
    Jul 25, 2003
  7. jkflens
    Replies:
    2
    Views:
    1,740
    jkflens
    May 30, 2006
  8. Erik Wasser
    Replies:
    5
    Views:
    850
    Peter J. Holzer
    Mar 5, 2006
Loading...