473,396 Members | 1,975 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,396 software developers and data experts.

Include CSS and Schema informatione in XML files

Hi there.
I have started to work with CSS. For formatting HTML files, the CSS
commands can either be be present in the same HTML file via the
style-tag
<style type="text/css">
<!--
tagname {}
-->
</style>
or be present in a separate CSS file and be included via
<link rel="stylesheet" type="text/css" href="stylesheet.css">
For defining the output of xml files (which is want I want to do
preferentially) only the second method (referencing to external CSS
file) seems to exist:
<?xml-stylesheet type="text/css" href="stylesheet.css" ?>
Is it possible to include CSS formating informations directly into the
xml file as it is possible with DTD´s ?
I haven´t found any hint on doing this so far.
Please help! Thanx in advance.
Piet
Jul 20 '05 #1
1 2598
The thing with IE5.51 (And I think IE6) is that link and script tags
which include external files must have both a begin and an end tag.

For example :

This doesn't include the css :

<link rel="stylesheet" type="text/css" href="stylesheet.css">

While this does :

<link rel="stylesheet" type="text/css" href="stylesheet.css"></link>

This makes things problematic for developers.

If a developer tells his XSL transformer to create both begin
and end tags in the output, then :

<br/>

In the xslt becomes :

<br></br>

in the XHTML.

That's not a good thing because in IE <br></br> doesn't render
the same as either <br> or <br/>. (<br></br> renders with an
extra break which makes the resulting XHTML visually unappealing.)

So, personally, I've set up a scheme in my JSPs to write the
javascript and link external stuff separately and to have the
transform create everything in the body tags.

PS, IE doesn't support textareas in "XHTML", so you occassionally
you have use workarounds when you use them. The IE spec actually
says that using end tags for textares isn't suppported. And IE
does not claim to fully support XHTML.

If you search on google on this group you can find an example
using a textarea which fails (the text that should go into
the textarea appears outside the textarea).
Jul 20 '05 #2

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

Similar topics

4
by: stiank81 | last post by:
Hi. I have a problem witch I assume there is an answear to....? I have several XML schemas, and they all have quiet a lot of definitions in common. They still have to be seperated into...
0
by: Simon | last post by:
I have intellisense when editing my XML files by adding the corresponding ..XSD file to the solution and then selecting from the proposed list in the XML Document property 'targetSchema'. ...
3
by: Davide Bedin | last post by:
I have a "library" schema with the simple and complex types I commonly use in other schemas and then several other schemas, maybe created by other developers, that import/include the library...
1
by: David | last post by:
I'm running into problems using XSD.exe to generate classes from XSD files using the <Include> functionality. Being a complete newbie with this, I am obviously missing something obvious I have...
0
by: Patrick Kearney | last post by:
Hi All, I have seen this type of question raised in various groups but no one has supplied a definitive answer. I am trying to load a dataset schema that has an xs:include. Project policy is to...
3
by: Nathan Wallace | last post by:
Hello, I have 2 schema, for argument sake let's call them child.xsd and parent.xsd. I define all my types in parent.xsd and the child.xsd include the parent.xsd using the following tag: ...
4
by: bibsoconner | last post by:
Hi, I hope someone can please help me. I'm having a lot of trouble with schema files in .NET. I have produced a very simple example that uses "include" to include other schema files. It all...
1
by: Wallace | last post by:
Hi all, I have a problem on validating a xml fragment using a single namespace schema which spread across multiple schema files using include in the master schema file. No matter how I change...
5
by: pronerd | last post by:
I am trying to run an XSLT on a schema (XSD) file. The schema file has a "xsd:include" tag that includes another XSD file. When I load the schema in XML editors like XML Spy the data from all of...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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
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.