|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
CSS (namely absolute positioning) in xsl output
can anyone tell me why a div that is in the output of an xsl cannot be absolutely positioned or sized on the page using mozilla(firefox/netscape)
for example: (xml file) <xml> <node>value</node> </xml> (xsl file) <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl utput method="html" /><xsl:template match="/xml"> <html> <head> </head> <body> <div style="position:absolute;top:50;left:50;height:50;width:50;border:1px solid black"> hey </div> </body> </html> </xsl:template> </xsl:stylesheet> |
|
#2
|
||||
|
||||
|
Likely the same reason you cannot have onload javascript in it-it's my understanding that Mozilla translates the page, but does not go through it a second time as IE does, so they aren't read or try to apply before the document exists.
I tried to find the link reference, but could not, and I might be entirely wrong, but I had the same results you did. linked stylesheets would/do work. Can you do that? |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > XML Programming > CSS (namely absolute positioning) in xsl output |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|