473,748 Members | 10,737 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1328
john schultz (po**@cunterfei t.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.vict oria.tc.ca (Malcolm Dew-Jones) writes:
john schultz (po**@cunterfei t.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
6260
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 1234567890123456789012345
2
6280
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 example of this: www.houseofnerds.com/mathml_test.xml Because I am trying to display MathML embedded in the page, I need to
0
1225
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 converting XML + CSS into PDF. - Even more CSS support - Even more PDF features - Quick and easy server integration
1
1875
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 ADO.NET in this scenario. Ideally (naively) I would like to do something along these lines : 1. Create a SQLServer stored proc that returns a dataset (or similar) containing the order details such as :
3
12227
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 that Microsoft's parser decides that based on the regional settings, invalidating most numbers sent in XML internationally. Is this a bug or is it correct behaviour, based on infsufficient information?
12
5273
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
4385
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 or provide a code snippet? I would prefer vb.net but C# is fine too or even pseudo code with appropriate .Net objects and example.
7
1807
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 to read it using XML classes. I was wondernig if this is something I can/should read into memory using StreamReader class and then somehow create an XML file in memory with the outter tags???
3
1423
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 first mandatory line, i.e, <?xml version="1.0" encoding="ISO-8859-1" ?>.... I learned that simplexml_ does not parse without the above line, is this true, if yes, is there a way to add the above line once retrieving the contents and passing it to...
0
8830
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9541
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9247
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6074
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4602
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4874
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3312
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2782
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2215
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.