I can't guarantee there are no other dependencies, so since it easy,
I'd suggest trying to run directly from the trunk
http://simile-widgets.org/exhibit/api/exhibit-api.js
before we look for other problems. If there is one, I'll try to fix it.
On 10/5/2010 8:39 AM, kumarachi wrote:
hi David, thanks for your reply. I did use that same xml-importer.js
from the trunk and copied it locally.
however, it is still not working - exhibit comes up empty.
are there other dependencies for the xml-importer.js that are only in
the trunk?
i mean, i am using:
<script type="text/javascript" src="http://api.simile-widgets.org/
exhibit/2.2.0/exhibit-api.js?bundle=true"></script>
with local copy of xml-importer.js:
<script type="text/javascript" src="js/xml-importer.js"></script>
..
Should I be using the development trunk entirely?
On Oct 5, 1:07 pm, David Karger<[email protected]> wrote:
xml-importer is currently only available in the "trunk" version of
exhibit,http://trunk.simile-widgets.org/exhibit/api
a working example is
athttp://trunk.simile-widgets.org/exhibit/examples/books-xml/books-xml....
On 10/5/2010 6:31 AM, kumarachi wrote:
Hi,
I am working with XML Data (for various reasons had to switch from
JSON to XML -- to integrate better with other apps in my pipeline).
On simile exhibit sites, and elsewhere searching on Google, i didn't
see a whole lot of working examples of Exhibits with XML Data.
If i user exhibit-api.js without explicitly adding xml-importer.js to
my include files, I get an error:
<script type="text/javascript" src="http://api.simile-widgets.org/
exhibit/2.2.0/exhibit-api.js?bundle=true"></script>
Error:
No Importer Found for datatype application/xml
So I include the xml-importer directly:
<script type="text/javascript" src="js/xml-importer.js"></script>
This is my data importer link definition:
<link href="demos.xml" type="application/xml" rel="exhibit/data"
ex:itemTags="demo" ex:labelTags="label" />
And I can trace through the xml-importer.js file -- and that error is
now gone.
However, my exhibit is empty, and the 'scissor' is showing that the
JSON is coming up empty.
My Data is pasted below.
Can anyone see what's wrong with this? Been staring at this for a day
and unable to see what i have wrong here.
thanks in advance.
-k
<?xml version="1.0" encoding="UTF-8"?>
<demos>
<demo>
<label>AAA</label>
<vms>6</vms>
<release_date>39923</release_date>
<retire_date>40288</retire_date>
<platform_version>D65 SP1</platform_version>
<retire_note>CURRENT</retire_note>
<appconfig_id>394</appconfig_id>
<org>IG</org>
<custom_demo>AP;Accounts Payable;Invoice Processing;PO Processing</
custom_demo>
<keywords>demos;scenarios</keywords>
<scriptURI>../docurl</scriptURI>
<products>xml</products>
<description>maybe more</description>
</demo>
<demo>
<label>BBB</label>
<vms>5</vms>
<release_date>40429</release_date>
<retire_date>40794</retire_date>
<platform_version>D6.6</platform_version>
<retire_note>CURRENT</retire_note>
<locked>true</locked>
<appconfig_id>1066</appconfig_id>
<org>IA</org>
<org_admin>a1</org_admin>
<docsURL>../collateral/</docsURL>
<vmlist></vmlist>
<systemNav>true</systemNav>
<products>d1,d3,d5</products>
</demo>
</demos>
--
You received this message because you are subscribed to the Google Groups "SIMILE
Widgets" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/simile-widgets?hl=en.