Greetings,
I'm trying my hand at xml and css (no, I don't want to use XSL yet).
So I got a test.xml :
<?xml version="1.0" encoding="ISO-8859-1" ?>
<?xml-stylesheet href="styles.cs s" type="text/css"?>
<Diaries>
<name>
testName
</name>
<name>
testName the second
</name>
</Diaries>
I got a styles.css defined as this :
<meta http-equiv="content-style-type" content="text/css">
diairies,name{
display: block;
padding: 0.75em;
}
now if open test.xml with IE6 or Firebird, nothing appears, my screen is
blank yet the source is correct....
I am definitively missing somehting obvious here :
can someone help me please ?
thx a bunch !! 6 2235
charly wrote: I'm trying my hand at xml and css (no, I don't want to use XSL yet).
So I got a test.xml :
<?xml version="1.0" encoding="ISO-8859-1" ?> <?xml-stylesheet href="styles.cs s" type="text/css"?>
<Diaries> <name> testName </name> <name> testName the second </name> </Diaries>
I got a styles.css defined as this :
<meta http-equiv="content-style-type" content="text/css">
That line above is HTML markup and doesn't belong in a CSS stylesheet.
diairies,name{
The element name above is Diaries and not diairies
--
Martin Honnen http://JavaScript.FAQTs.com/
Ok, I admit, I did a bad cut & paste :
I did put DIARIES in both places and tried without the HTML markup but
had not better luck :( :
toto.xml follows :
<?xml version="1.0" encoding="ISO-8859-1" ?>
<?xml-stylesheet href="styles.cs s" type="text/css"?>
<DIAIRIES>
<TARGET NAME="myNameIs"/>
</DIAIRIES>
CSS file :
TARGET{
display: block;
color: #6A6A6A;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 8pt;
font-weight:bold;
}
DIAIRIES{
display: block;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 8pt;
font-weight: normal;
}
thx anyway
charly wrote: I did put DIARIES in both places and tried without the HTML markup but had not better luck :( :
toto.xml follows :
<?xml version="1.0" encoding="ISO-8859-1" ?> <?xml-stylesheet href="styles.cs s" type="text/css"?>
<DIAIRIES> <TARGET NAME="myNameIs"/>
</DIAIRIES>
Hmm, there is no content in that XML file so the browser will indeed
render a blank screen.
Maybe you have again not copied what you played with but I suggest you
try to make an example that you think doesn't work, upload it to a HTTP
server and post the URL here.
--
Martin Honnen http://JavaScript.FAQTs.com/
> Hmm, there is no content in that XML file so the browser will indeed render a blank screen. Maybe you have again not copied what you played with but I suggest you try to make an example that you think doesn't work, upload it to a HTTP server and post the URL here.
First of all, Thank you very for your time and attention :)
I did put exactly what I played with.
But I seem to forget something very important in my xml file but I do
not see what it is :(
The point is that if i remove the css part, the borwser prints the
structure of the document :(
could you provide me with a wholly formed xml file please ?
thx again !
> Hmm, there is no content in that XML file so the browser will indeed render a blank screen. Maybe you have again not copied what you played with but I suggest you try to make an example that you think doesn't work, upload it to a HTTP server and post the URL here.
At last I understand my error :
in xml, <ELEMENT name="tot"></ELEMENT> won't print anything
I thought it would at last print "tot" but of course, not :(.
I have to provide <ELEMENT name="tot">here </ELEMENT> to print "here"
That's annoying ...
My problem is that I have a huge xml file with a lot of elements where
infos are held in attributes to make the document more human readable
but the parser doesn't care : if element is empty, then he won't print it :(
Would XSL help me there ?
charly wrote: > Hmm, there is no content in that XML file so the browser will indeed
render a blank screen. Maybe you have again not copied what you played with but I suggest you try to make an example that you think doesn't work, upload it to a HTTP server and post the URL here.
At last I understand my error :
in xml, <ELEMENT name="tot"></ELEMENT> won't print anything I thought it would at last print "tot" but of course, not :(.
I have to provide <ELEMENT name="tot">here </ELEMENT> to print "here"
That's annoying ...
My problem is that I have a huge xml file with a lot of elements where infos are held in attributes to make the document more human readable but the parser doesn't care : if element is empty, then he won't print it :(
Would XSL help me there ?
Yes, XSLT can transform you XML to HTML and put any information inside
XML attributes into some HTML element so that the information is rendered.
Or you could use XSLT to transform your XML with attributes to some XML
with elements containing content.
--
Martin Honnen http://JavaScript.FAQTs.com/ This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Dmitri Shvetsov |
last post by:
Hi,
I'm using these strings around DataGrid
<div ID="div1" style="LEFT: 4px; OVERFLOW: auto; WIDTH: 100%; POSITION:
absolute; TOP: 248px; HEIGHT: 300px">
....datagrid...
</div>
|
by: happyinst |
last post by:
I am having a problem with an ASP.Net web application that I am not certain
how to troubleshoot.
When I view my web app from my computer it shows me a blank screen for about
30 seconds before finally displaying the page. The green progress bar
actually goes approximately 90% across after about 2-3 seconds and then it
just sits there. I have done trace statements and the code is only taking
about 3 seconds to process... but I am not...
|
by: shishuda91 |
last post by:
I'd like to display scrolling, word-wrapped, centered text on a blank
white screen with no window borders, nothing. Just a pure white screen
with big letters in the middle (in an invisible box). Then I want to
use the mouse buttons to page up or page down (left and right buttons),
or exit (double click).
Can someone point me in the right direction? I'm new to VB.
Thanks!
|
by: Jim in Arizona |
last post by:
Using this:
<asp:ListItem Value="0"</asp:ListItem>
as long as I have a value listed and leave the area between the tags
blank, when viewed the DropDownList will show a 0 as a choice. I want it
to be blank.
I've tried doing this:
<asp:ListItem Value="0"> </asp:ListItem>
|
by: Eric |
last post by:
We have a page that displays a datagrid with quite a bit of data in it.
We have a few comb-boxes that we filter data on when we click the
search button. I can change the combo-boxes and click the search
button, but if during that time I go and look at an email or get a cup
of water, I come back and click the search button I get a white screen
or blank screen. I checked my session and it is still valid. If I
close the page and re-open it...
| |
by: Raul Elms |
last post by:
Hi,
I'm running Apache2 together with the php and mysql modules on an opensuse
10.1 machine. Most scripts run well, I can connect and query databases
without any problems. But some well known scripts like phpMyAdmin or
Nucleus fail. When accessing a database or table (I don't really know when
PHP crashes) PHP just returns a blank screen (HTML source code is blank as
well).
For instance phpMyAdmin: With only one server configured I can...
|
by: sonirajesh |
last post by:
i am having trouble with uploading, when i upload big size file like >2M
it hang the browser and show blank screen and file does not get upload.
upload_max_filesize is set 8M
also added set_time_limit(0); in my script
But same thing on local network works file, seems problem in more setting.
please help
|
by: Lawrence Krubner |
last post by:
Imagine a template system that works by getting a file, as a string, and
then putting it through eval(), something like this:
$formAsString = $controller->command("readFileAndReturnString", $formName);
// 06-22-07 - the next commands try to import all the functions that the
|
by: koager |
last post by:
I know there have been various questions about blank screens from php but I've looked around and they aren't helping me at all.
I wrote a .php page and put it up on the hosting server but the page keeps on returning blank. I've checked that I have all my brackets and semicolons placed correctly.
I've added
<?php
//turn on error reporting
ini_set('display_errors',1);
ERROR_REPORTING(E_ALL);
?>
|
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,...
|
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...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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();...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |