Subject: Re: [xsl] The case of the mysteriously corrupted XSL transformation (ARRGH) From: Anton Triest <anton@xxxxxxxx> Date: Thu, 02 Dec 2004 21:46:50 +0100 |
<?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet version="1.0" xmlns="http://www.w3.org/1999/xhtml" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > <xsl:output method="xml" version="1.0" encoding="utf-8" indent="yes" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" /> <xsl:template match="/"> <html> <head><title>test</title></head> <body> <div> <script type="text/javascript"> document.write('hello'); </script> </div> </body> </html> </xsl:template> </xsl:stylesheet>
<?xml version="1.0" encoding="utf-8"?> <?xml-stylesheet type="text/xsl" href="test.xsl"?> <dummy/>
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>test</title> </head> <body> <div> <script type="text/javascript"> document.write('hello'); </script> </div> </body> </html>
Best regards, Anton
Hi Anton,
Thanks for the help.
I see what you mean, but can I clarify:
Is it true that "on-the-fly" Javascript like document.write will have problems working in an XSL-transformed page? I had the impression that the transformation layer is just an additional layer and that the browser would consider the final code only. If this is the case, a lot of existing scripts would be off-limits to whoever's trying to employ this technique.
Also, the fact that it works using some XSL parsers and not with others is a worry. I just hope that I'm doing things according to specs so far and the next server upgrade won't break it.
Thanks! Wong
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] The case of the mysteriou, Wong Chin Shin | Thread | Re: [xsl] The case of the mysteriou, David Carlisle |
[xsl] Benefits of Schema-Aware Proc, JBryant | Date | Re: [xsl] SVG and Presentations at , David Carlisle |
Month |