473,404 Members | 2,213 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

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

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?
Jul 20 '05 #1
2 1311
john schultz (po**@cunterfeit.com) 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.

Jul 20 '05 #2
In article <40******@news.victoria.tc.ca>,
yf***@vtn1.victoria.tc.ca (Malcolm Dew-Jones) writes:
john schultz (po**@cunterfeit.com) 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).
Jul 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Rizwan | last post by:
I have the following tasks : 1) receive a flat text file which contains data and 2) convert it into an XML The flat text file for example is in this format : 1 2...
2
by: michael_quinlivan | last post by:
Hi all, I have noticed that the background color of an XML document cannot be set properly using CSS (that is, you cannot define styles for the BODY element of an XHTML document). I have an...
0
by: Jon | last post by:
From: Michael Day <mikeday@yeslogic.com> Subject: Prince 5.0: XML + CSS to PDF formatter We are very happy to announce the release of Prince 5.0, a new version of our batch formatter for...
1
by: Rossco | last post by:
We have tentatively agreed with a supplier to exchange order information. The plan is to use an 'industry standard' order schema definition from say www.xcbl.org. Is there are simple way to use...
3
by: DustWolf | last post by:
Hello, I am wondering, what is the standard for including decimal numbers in XML code? What determines what is the decimal delimiter and what can be the grouping symbol? I have just realized...
12
by: TS | last post by:
i have a need to possibly enable mutli language support. What benefit do i get by using a resource file instead of a custom xml solution? thanks!
4
by: TC | last post by:
Hey All, I've been searching for a code snippet, not a 3rd party tool, that takes a ..csv file and transforms it to an .xml file based upon an .xsd. Can anyone point me in the right direction...
7
by: dm3281 | last post by:
Hello, I have this non-standard XML file that I have to manually sort thru each day and verify whether various jobs finish successfully or not. This file isn't a real XML file, so I cannot appear...
3
by: Harsha | last post by:
Hi all, I used simplexml_load_file function to parse all my xml feeds, and found it to be the easiest option available. But, i recently signed up for a feed which sends the xml file without the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.