Hi All,
I’ve been scouring forums and the internet high and low for a solution to the problem I’m having and I can’t seem to find anything that resolves my issue. This is about XML/XSL but its being done on the client side so that’s why its in this forum.
I was wondering if anyone here had ever tried embedding something like a Flash menu in and XSL sheet that is called from an XML file. Keep in mind that I’m really more of a designer/3Dartist and while I enjoy learning new code and its uses, I’m not an expert and currently do it as a means to an end, so perhaps I’ve missed something about how XSL runs.
I’m currently experimenting with the idea of converting a client’s website to from basic HTML/CSS to XML data which is then processed and styled using XSL. The reason for this is that I would like the client to be able to edit any of the data and information on their site without needing to look at any code but still be able to edit basic information within the design structure that I already have set up. My plan is to create an easy to use Flash application which can be used to edit portions of the XML. From the tests I’ve run I’ve been able to get this working fine, but then comes the weird problems I’ve been having:
Inside my XSL sheet I’ve embedded an .SWF to act as an animated menu, and I’ve tested this before even bothering with XSL transformations just to see if it works. It works fine in IE (in multiple versions as well) but whenever I test it in Firefox, the page just loads for an indefinite amount of time. If I hit stop, and then refresh, the flash object shows up, but not within the context of the XSL or XML… the snippet of code is just sitting there all by it’s lonesome.
Here is the testing page I’m using:
http://portfolio.bretkittle.com
The XML
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="layout/index.xsl"?>
<thisPage>
<thisSection>
<thisTitle></thisTitle>
<thisPara>
...to novelist Katie Estill's website. In the novel section you can find information about her novels Dahlia's Gone and Evening Would Find Me.
</thisPara>
</thisSection>
<thisSection>
<thisTitle></thisTitle>
<thisPara>
Katie Estill has been nominated for the 2008 HAMMETT PRIZE for DAHLIA'S GONE by the North American Branch of the International Association of Crime Writers for a work of literary excellence in the field of crime writing by a US or Canadian author.
</thisPara>
</thisSection>
</thisPage>
The XSL:
<?xml version="1.0" encoding="utf-8"?><!-- DWXMLSource="file:///D|/In Progress/Web/index.xml" --><!DOCTYPE xsl:stylesheet [
<!ENTITY nbsp " ">
<!ENTITY copy "©">
<!ENTITY reg "®">
<!ENTITY trade "™">
<!ENTITY mdash "—">
<!ENTITY ldquo "“">
<!ENTITY rdquo "”">
<!ENTITY pound "£">
<!ENTITY yen "¥">
<!ENTITY euro "€">
]>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" encoding="utf-8" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>
<xsl:template match="/">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Katie Estill -- Author's Homepage</title>
<link href="../css/style_01.css" rel="stylesheet" type="text/css" />
<script src="../Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
</head>
<body>
<div id="wrapper">
<div id="container">
<div id="nav-main">
<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','700','height','120','src','../Header','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','../Header' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="700" height="120">
<param name="movie" value="../Header.swf" />
<param name="quality" value="high" />
<embed src="../Header.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="700" height="120"></embed>
</object></noscript>
</div>
</div>
</div>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
Thank you so much in advance to anyone who knows what the issue is!