Mario Vázquez wrote:
I've just learned how to attach a CSS file to a simple XML document with:
<?xml-stylesheet href="css_file.css" type="text/css" ?>
It is possible to incrust the CSS definitions in the same XML?
I don't know what that has to do with .NET XML, the topic of this
newsgroup but depending on which browser you target there are some ways,
Mozilla and Opera I think would allow you to put an XHTML style element
in there e.g.
<?xml version="1.0" encoding="UTF-8"?>
<gods>
<style xmlns="http://www.w3.org/1999/xhtml"
type="text/css">
style {
display: none;
}
gods {
display: block;
margin: 0.2em 0.2em 0.2em 40px;
background-color: lightblue;
}
god {
margin: 0.1em;
display: list-item;
}
</style>
<god>Kibo</god>
<god>Xibo</god>
</gods>
But don't expect IE (5, 6, 7) to do anything with that but render the
XML tree.
--
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/