Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 11th, 2003, 09:30 AM
Registered User
 
Join Date: Nov 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default create iframe transparency with xslt

Hello, I am loading an .xsl page from the IFRAME element, having
"allowtransparency" property set to "true".

<iframe src="some.xsl" allowtransparency="true"></iframe>

and

some.xsl is:

<?xml version="1.0" encoding="ISO-8859-1"?>

<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" indent="yes" encoding="UTF-8"/>

<xsl:template match="/">
  <html>
  <head>
  </head>
  <body style="background : transparent;">
    Text
  </body>
  </html>
</xsl:template>

</xsl:stylesheet>

Now, if it was an .html with body background set to transparent, all would be fine, but this simply doesn't work. Does anybody know why?


Thank you,

Fany :)


 
Old November 11th, 2003, 12:43 PM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

Other people have mentioned this but I don't know why it happens, it's not just this feature that doesn't work. Presumably it's because by the time the browser has worked out it needs to load an embedded stylesheet it has parsed the content of the iframe as xml and is unable to now change its mind and see it as html.

Joe (MVP - xml)





Similar Threads
Thread Thread Starter Forum Replies Last Post
Bitmap Transparency tahcue C++ Programming 0 December 19th, 2007 07:45 PM
values from one iframe to another iframe URGENT raaj Beginning PHP 2 February 27th, 2007 12:19 PM
Transparency and repainting Volt9000 C# 0 December 18th, 2004 01:00 AM
PNG Transparency in IE richard.york Javascript 4 January 19th, 2004 08:26 PM
Transparency Problem blah VB.NET 2002/2003 Basics 0 October 30th, 2003 02:40 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.