LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
Search this Thread
Old 01-13-2007, 11:46 AM   #1
ronald-be
Member
 
Registered: Aug 2004
Location: Belgium
Distribution: debian 5.02
Posts: 73

Rep: Reputation: 15
Including document in XML-file that uses CSS


Hi people,

I got an problem when using CSS in an XML-document. When I type text and I use CSS for the layout (in a separate file) it's all ok. But when I want to include a document with the data and an XSchema defined, I see... nothing!!! I opened the document with Firefox 2.0. I give you the code :

main document

<?xml version="1.0" encoding="utf-8"?>

<?xml-stylesheet href="les01f.css" type="text/css"?>

<!DOCTYPE hoofddocu [ <!ENTITY docu SYSTEM "les01f-txt.xml" > ]>

<hoofddocu>
%docu;
</hoofddocu>

stylesheet

doc {display : block; font-size: 20pt}
section1 {display : block; font-family: "monospace"}
section2 {display : block; font-family: "arial"}
par1 {display : block; color: red}
par2 {display : block; color: green}
par3 {display : block; color: blue}

data-file

<?xml version="1.0" encoding="utf-8"?>

<doc
xsi:noNamespaceSchemaLocation="les01d.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<section1>
<par1>
XXXaaaaaYYYaaaaAiiiiiiiiiIaaaaaaaaaAiiiiiiiiiIaaaaaaaaaA
aaaaaaaaaAiiiiiiiiiIaaaaaaaaaAiiiiiiiiiIaaaaaaaaaA
aaaaaaaaaAiiiiiiiiiIaaaaaaaaaAiiiiiiiiiIaaaaaaaaa1
</par1>
<par2>
XXXaaaaaaaaaAiiiiiiiiiIaaaaaaaaaAiiiiiiiiiIbbbbbbbbbB
aaaaaaaaaAiiiiiiiiiIaaaaaaaaaAiiiiiiiiiIbbbbbbbbbB
aaaaaaaaaAiiiiiiiiiIaaaaaaaaaAiiiiiiiiiIbbbbbbbbb2
</par2>
<par3>
XXXaaaaaaaaaAiiiiiiiiiIaaaaaaaaaAiiiiiiiiiIcccccccccC
aaaaaaaaaAiiiiiiiiiIaaaaaaaaaAiiiiiiiiiIgggggggggG
aaaaaaaaaAiiiiiiiiiIaaaaaaaaaAiiiiiiiiiIgggggggggG
aaaaaaaaaAiiiiiiiiiIaaaaaaaaaAiiiiiiiiiIggggggggg7
</par3>
</section1>
<section2>
<par1>
XXXaaaaaYYYaaaaAiiiiiiiiiIaaaaaaaaaAiiiiiiiiiIaaaaaaaaaA
aaaaaaaaaAiiiiiiiiiIaaaaaaaaaAiiiiiiiiiIaaaaaaaaaA
aaaaaaaaaAiiiiiiiiiIaaaaaaaaaAiiiiiiiiiIaaaaaaaaa1
</par1>
<par2>
XXXaaaaaaaaaAiiiiiiiiiIaaaaaaaaaAiiiiiiiiiIbbbbbbbbbB
aaaaaaaaaAiiiiiiiiiIaaaaaaaaaAiiiiiiiiiIbbbbbbbbbB
aaaaaaaaaAiiiiiiiiiIaaaaaaaaaAiiiiiiiiiIbbbbbbbbb2
</par2>
<par3>
XXXaaaaaaaaaAiiiiiiiiiIaaaaaaaaaAiiiiiiiiiIcccccccccC
aaaaaaaaaAiiiiiiiiiIaaaaaaaaaAiiiiiiiiiIggggggggg7
</par3>
</section2>
</doc>

I shortened the data-file to make the posting not too long. The URI's are ok. Can anyone help?

Thankx

Ronald
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Including document in XML-file that uses CSS ronald-be Linux - Desktop 1 01-13-2007 06:48 PM
flat files or xml and css? trscookie Linux - General 1 01-17-2006 09:24 AM
xml elements in css trscookie Programming 3 01-16-2006 10:07 AM
problem in linking css file in xml geethu Programming 0 09-10-2005 05:51 AM
Reading a xml document: amirspl Programming 3 09-10-2003 07:51 AM


All times are GMT -5. The time now is 01:07 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration