xsl:copy-of working oddly?
Daniel Cosuineau <[email protected]> Sat, 5 Apr 2008 20:48:11 -0700 (PDT)
| Newsgroups | gmane.comp.mozilla.devel.layout.xslt |
|---|---|
| Organization | http://groups.google.com |
| Message-ID | <[email protected]> |
I'm relatively new to XSLT however I've noticed something weird. I'm storing HTML in my XML for a content portion (probably not a great idea but I need a flexible input type area). My XML looks as such: (in the actual code content has 4 separate <p></p> groups with Lorem Ipsum text inside) --- <content> <p>Lorem ipsum dolor sit amet, *snip*</p> </content> --- And my XSL file looks as suh: --- *snip* <p>Lorem ipsum dolor sit amet, *snip*</p> <xsl:copy-of select="content/node()" /> *snip* --- Everything renders properly in IE 7. The paragraphs are formatted properly and the links are clickable. HOWEVER, in Firefox (3 Beta 5 specifically) the paragraph in the XSL (exactly the same tags as the first paragraph in the XML) is rendered properly, where as the paragraphs included via the xsl:copy-of are rendered very oddly. Font and color styles are applied, but display, padding, margin, etc. are not. As well as the links :hover and other properties work, but they aren't clickable. Using the web developer tool bar to view the generated source, everything looks as its supposed to (other than the paragraph tags being given xmlns="" attributes). Any ideas?