Hi,
I have problems using Backbase in Firefox 3. I build this very simple testcase where I have a custom element 'test' which is defined in a included tdl. As you can see in the screenshot the first div is displayed ok, but the one that's in de template of the sp:test element is not shown correctly in firefox.
The screenshot: http://www.triennium.com/temp/2008-08-29_104011.png
Notice that the template of the sp:test element IS added in the view, but only the text is shown, not the style. Also notice Firebug is displaying that element grey in the source.
My document:
<!-- -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="css/generic.css" />
<script type="text/javascript" src="Backbase_4_2_1/Backbase_4_2_1/engine/boot.js"></script>
<style type="text/css">
.testclass {
border: 1px solid red;
padding: 5px;
}
</style>
</head>
<body>
<script type="text/backbase+xml"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:b="http://www.backbase.com/2006/btl"
xmlns:c="http://www.backbase.com/2006/command"
xmlns:e="http://www.backbase.com/2006/xel"
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:sp="http://www.triennium.com/2008/servicepunt">
<xi:include href="Backbase_4_2_1/Backbase_4_2_1/bindings/config.xml" />
<xi:include href="spTab2.xml" />
<div class="overzicht">
<div class="testclass">
TEST1
</div>
</div>
<div class="overzicht">
<sp:test id="woning">
TEST2
</sp:test>
</div>
</script>
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="css/generic.css" />
<script type="text/javascript" src="Backbase_4_2_1/Backbase_4_2_1/engine/boot.js"></script>
<style type="text/css">
.testclass {
border: 1px solid red;
padding: 5px;
}
</style>
</head>
<body>
<script type="text/backbase+xml"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:b="http://www.backbase.com/2006/btl"
xmlns:c="http://www.backbase.com/2006/command"
xmlns:e="http://www.backbase.com/2006/xel"
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:sp="http://www.triennium.com/2008/servicepunt">
<xi:include href="Backbase_4_2_1/Backbase_4_2_1/bindings/config.xml" />
<xi:include href="spTab2.xml" />
<div class="overzicht">
<div class="testclass">
TEST1
</div>
</div>
<div class="overzicht">
<sp:test id="woning">
TEST2
</sp:test>
</div>
</script>
</body>
</html>
The tdl:
<?xml version="1.0" encoding="UTF-8"?>
<d:tdl
xmlns:d="http://www.backbase.com/2006/tdl"
xmlns:b="http://www.backbase.com/2006/btl"
xmlns:c="http://www.backbase.com/2006/command"
xmlns:e="http://www.backbase.com/2006/xel"
>
<d:namespace name="http://www.triennium.com/2008/servicepunt">
<d:element name="test">
<d:template type="application/xml">
<div class="testclass">
<d:content/>
</div>
</d:template>
</d:element>
</d:namespace>
</d:tdl>
<d:tdl
xmlns:d="http://www.backbase.com/2006/tdl"
xmlns:b="http://www.backbase.com/2006/btl"
xmlns:c="http://www.backbase.com/2006/command"
xmlns:e="http://www.backbase.com/2006/xel"
>
<d:namespace name="http://www.triennium.com/2008/servicepunt">
<d:element name="test">
<d:template type="application/xml">
<div class="testclass">
<d:content/>
</div>
</d:template>
</d:element>
</d:namespace>
</d:tdl>

Hi, Could you try to add
29 August, 2008 - 11:01 — yudiHi,
Could you try to add XHTML namespace to your widget div in the template ? It seems that the div element XHTML namespace is not recognized there and therefore , it does not have attribute and property like XHTML element for instance class attribute. Could you try to add XHTML namespace on the div ?
<div xmlns="http://www.w3.org/1999/xhtml" class="testclass">
<d:content/>
</div>
</d:template>
~Yudi
That's it! This really got
29 August, 2008 - 11:44 — paulkokThat's it! This really got be crazy, but it does make some sense...