473,406 Members | 2,956 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,406 software developers and data experts.

importing an xml node into an xhtml one


I'd like to import an html node into an xhtml one.

the node is the table found in :

http://thoraval.yvon.free.fr/Table_l...or_picker.html

(a color picker)

this don't work, even if i write the html as xhtml.

the sole "working" is when i extract the above file into an xml one :

http://thoraval.yvon.free.fr/Table_l...lor_picker.xml

in this case, the file contains the table only.
then, i've imported this table into another file, using XHR :

http://thoraval.yvon.free.fr/Table_l...ort_node.xhtml

if i inspect the DOM, i see both under Safari and firefox 2 the table
and all the nodes it contains, however, nothing appears on screen ???

from Safari's "Web Inspector" all of the computed styles are with :
width: 0px;
height:0px;

then, i wanted to "brute force" height and width, here i got error
saying element.style is undefined ???

some light upon that ?
--
Une Bévue
Jun 27 '08 #1
4 1023
SAM
Une Bévue a écrit :
I'd like to import an html node into an xhtml one.
Problem of syntax ?

not :
<tag id="myId" onclick="function("argument")">

but :
<tag id="myId" onclick="function('argument')">
or
<tag id='myId' onclick='function("argument")'>

or (bad ways)
<tag id=myId onclick=function("argument")>
<tag id=myId onclick=function('argument')>
--
sm
Jun 27 '08 #2
SAM <st*********************@wanadoo.fr.invalidwrote :
or
<tag id='myId' onclick='function("argument")'>
my xml file looks like :

<td bgcolor='#000000' onmouseover='showC("#000000")'
onclick='setC("#000000")'><img src='trans.png' /></td>
then, it seems, to me, to be correct syntactically otherwise the html
version would have been working.
--
Une Bévue
Jun 27 '08 #3
pr
Une Bévue wrote:
I'd like to import an html node into an xhtml one.

the node is the table found in :
You need to use the XHTML namespace and the application/xhtml+xml
content type for:
http://thoraval.yvon.free.fr/Table_l...or_picker.html
As you have already for:
>
http://thoraval.yvon.free.fr/Table_l...ort_node.xhtml
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
Jun 27 '08 #4
pr <pr@porl.globalnet.co.ukwrote:
You need to use the XHTML namespace and the application/xhtml+xml
content type for:
OK, thanks, i suspected such thing like that ;-)
--
Une Bévue
Jun 27 '08 #5

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

Similar topics

7
by: Robert Mark Bram | last post by:
Hi All! In the code below, I am reading in an xhtml document and attempting to use selectNodes to find a <p id="rmb"> node.. But the result is: 2 - */* 0 - */p Can anyone suggest what I...
5
by: Patient Guy | last post by:
In my reading of the Strict and Transitional DTD for HTML 4.0, the table row (TR) elements are contained within table section elements: THEAD, TFOOT, and TBODY. The table section elements are...
5
by: noahlt | last post by:
In my program, I get input from the user and insert it into an XHTML document. Sometimes, this input will contain XHTML, but since I'm inserting it as a text node, xml.dom.minidom escapes the...
3
by: farseer | last post by:
Hello, i have a schema which also imports the XHTML schema: <xsd:import namespace="http://www.w3.org/1999/xhtml" schemaLocation="http://www.w3.org/2002/08/xhtml/xhtml1-strict.xsd"/> This...
1
by: Greg | last post by:
This renders in Firefox perfectly well but the text in the red box remains invisible. The program is a subset of a larger and doesn't do much. but even after cutting out all the unneccessary stuf,...
4
by: elsigh | last post by:
I'm wondering if anyone has any ideas about a way to quickly convert an HTML DOM Node into an XML Document. The goal is that I want to perform XSLT on the Node, which is coded correctly as XHTML....
5
by: sniper | last post by:
hi ; i have this small code that consist in taking the name of the user and writing it in the same form as an output.the name is relative to /data/valid/string1 In my Js code i want to access the...
4
by: clover2411 | last post by:
Hi there, Apologies if I'm posting to the wrong group; this one looked to be the best match. I'm having trouble writing a bit of XSL/XPATH and wondered if someone would please shed some...
3
by: alhalayqa | last post by:
hi guys, how can distinguish between XML Node and HTML Node, using attributes or method .. thanks .
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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.