Re: [xmlc] Headers and footers

Erik Rasmussen <[email protected]> Thu, 1 Sep 2005 11:17:47 -0700 (PDT)
Newsgroups gmane.comp.java.enhydra.xmlc
Message-ID <[email protected]>
This is a multi-part message in MIME format...

------------=_1125598709-4880-197
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

It happens using your replace() method.

template.html
---
<html>
<head>
  <title>Template</title>
</head>
<body>
  <div>header</div>
  <div id="content"></div>
  <div>footer</div>
</body>
</html>
---

content.html
---
<html>
<head>
  <title>Content</title>
</head>
<body>
  <div id="content">
    This is my content.
  </div>
  Extra crap
</body>
</html>
---

replace(templateHTML,
templateHTML.getElementById("content"),
contentHTML.getElementById("content"));

output:
---
<html>
<head>
  <title>Template</title>
</head>
<body>
  <div>header</div>
  <div id="content">
    This is my content.
  </div>
  Extra crap
  <div>footer</div>
</body>
</html>
---

Surely that's a bug!  Hope that helps...

Erik

--- Justin Akehurst <[email protected]> wrote:

> I'd like to see the Java code you have that exhibits
> the problem
> described, with both header and footer being sucked
> into the dom
> instead of just the header.
> 
> -Justin
> 


		
____________________________________________________
Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 
 


------------=_1125598709-4880-197
Content-Type: text/plain; name="message-footer.txt"
Content-Disposition: inline; filename="message-footer.txt"
Content-Transfer-Encoding: 8bit


--
You receive this message as a subscriber of the [email protected] mailing list.
To unsubscribe: mailto:[email protected]
For general help: mailto:[email protected]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws

------------=_1125598709-4880-197--