importing an xml node into an xhtml one

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?ISO-8859-1?Q?Une_B=E9v?==?ISO-8859-1?Q?ue?=

    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 :



    (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 :



    in this case, the file contains the table only.


    then, i've imported this table into another file, using XHR :



    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
  • SAM

    #2
    Re: importing an xml node into an xhtml one

    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="functi on("argument")" >

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

    or (bad ways)
    <tag id=myId onclick=functio n("argument") >
    <tag id=myId onclick=functio n('argument')>


    --
    sm

    Comment

    • =?ISO-8859-1?Q?Une_B=E9v?==?ISO-8859-1?Q?ue?=

      #3
      Re: importing an xml node into an xhtml one

      SAM <stephanemoriau x.NoAdmin@wanad oo.fr.invalidwr ote:
      or
      <tag id='myId' onclick='functi on("argument")' >
      my xml file looks like :

      <td bgcolor='#00000 0' onmouseover='sh owC("#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

      Comment

      • pr

        #4
        Re: importing an xml node into an xhtml one

        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:
        As you have already for:
        <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">

        Comment

        • =?ISO-8859-1?Q?Une_B=E9v?==?ISO-8859-1?Q?ue?=

          #5
          Re: importing an xml node into an xhtml one

          pr <pr@porl.global net.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

          Comment

          Working...