I need an example about including BTL namespaces.

Please folks,
I need an example about including btl namespaces.
My code is here, and it's not working.

<!---->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>Startup Page</title>
<script type="text/javascript" src="Backbase_4_1_2/engine/boot.js" />
</head>
<body>
<script xmlns:b="\Backbase_4_1_2\bindings\www.backbase.com.2006.btl"
c="http://www.backbase.com/2006/command"
xmlns:d="http://www.backbase.com/2006/tdl"
xmlns:e="http://www.backbase.com/2006/xel"
xmlns:xi="http://www.w3.org/2001/XInclude" type="application/backbase+xml">

<xi:include href="Backbase_4_1_2/bindings/config.xml" />

</script>

<b:calendar mode="inline" />

</body>
</html>

<script

<script xmlns="http://www.w3.org/1999/xhtml" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:b="http://www.backbase.com/2006/btl" xmlns:c="http://www.backbase.com/2006/command" xmlns:d="http://www.backbase.com/2006/tdl" xmlns:e="http://www.backbase.com/2006/xel" type="text/backbase+xml">

doesn't work yet.

My code now is:

<!---->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>Startup Page</title>
<script type="text/javascript" src="Backbase_4_1_2/engine/boot.js" />
</head>
<body>
<script xmlns="http://www.w3.org/1999/xhtml"
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:b="http://www.backbase.com/2006/btl"
xmlns:c="http://www.backbase.com/2006/command"
xmlns:d="http://www.backbase.com/2006/tdl"
xmlns:e="http://www.backbase.com/2006/xel" type="text/backbase+xml">

</script>
<b:calendar/>
</body>
</html>

I can't see my calendar on the page. Need I to declare any other thing?
Thanks!

I'm from Brazil, forgive my english...

I need an example about including BTL namespaces.

hi brasiqui,

You should put b:calendar inside the  <script type="text/backbase+xml"></script> tag not outside. You also have to include config.xml that contains definitions of the tags created
by Backbase.

<script xmlns="http://www.w3.org/1999/xhtml"
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:b="http://www.backbase.com/2006/btl"
 type="text/backbase+xml">

<xi:include href="Backbase_4_1_2/bindings/config.xml"/>
<b:calendar/>
</script>

~Yudi

Not Yet

Hi Yudi,
I did the first example from tutorial. So, the js files are there in the folder and I can access him. But I can't put my calendar. I think that the tag b: is not working.
Need I to put the code into the header tags? Or can I put into the body tag?
I am trying to learn, but to start I need to know the basic configuration. Yes, I read the tutorial but is not working.

Now my code is index.html:

<!---->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>Startup Page</title>
<script type="text/javascript" src="Backbase_4_1_2/engine/boot.js" />
</head>

<body>

<script xmlns="http://www.w3.org/1999/xhtml"
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:b="http://www.backbase.com/2006/btl"
 type="text/backbase+xml">

<xi:include href="Backbase_4_1_2/bindings/config.xml"/>
<b:calendar/>
</script>

</body>
</html>

What's wrong?
I tested in Firefox and Internet Explorer...

RE: not yet

This example should work for you. Notice the <script> tag has an explicit closing tag. Without this syntax Backbase will fail silently under some browsers. See http://bdn.backbase.com/node/4085 for more details.

If this code doesn't work, check very carefully your href to boot.js and config.xml

<!---->
<!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>Backbase 4.1 Example</title>
        <script type="text/javascript" src="Backbase_4_1_2/engine/boot.js"></script>
</head>

<body>

<script type="application/backbase+xml"
        xmlns:b="http://www.backbase.com/2006/btl"
        xmlns:xi="http://www.w3.org/2001/XInclude">

       
        <!-- include BTL widgets -->
        <xi:include href="Backbase_4_1_2/bindings/config.xml" />
       
        <h2>Test of b:calendar</h2>
       
        Click field to enter a date:<br/>
        <b:calendar />
       
        <br /><br />
        This calendar only accepts dates between March 10, 2008 and March 31, 2008.<br />
        <b:calendar min="2008-2-10" max="2008-2-31" mode="inline" hideInput="true" />
</script>
</body>

</html>

Yes! Now is working!

Actually my error was dont close the first tag script on header sector.
Thanks for your help.
If all run ok, I will buy the professional version.

Obrigado!

Brasiqui