Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 20th, 2005, 07:10 AM
Piet
Guest
 
Posts: n/a
Default 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
  #2  
Old July 20th, 2005, 07:11 AM
GIMME
Guest
 
Posts: n/a
Default Re: Include CSS and Schema informatione in XML files

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).
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles