Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to link XML?

Status
Not open for further replies.

adalkall

Technical User
Feb 6, 2008
1
IS
Hi,
I have a simple chart (.swf) that is connected to a xml. It generates a linear chart from the data in the xml file.

My probmlem is that I wanted to connect the swf. file with a xml file on another site. The swf. file doesnt support that so i had to use a static xml file from my own server. That is not good because the information i need is updated more often than I care to change my static xml file.

here is an exsample how my xml file looks like:


<chart>
<chart_type>line</chart_type>
<chart_data>
<row>
<null/>
<string>Year 1</string>
</row>
<row>
<string>Total</string>
<number>100</number>
<number>123</number>
<number>221</number>
</row>
</chart_data>
<chart_pref line_thickness='1' point_shape='none' fill_shape='false' />
</chart>

*********

This will draw a linear graph.
My question is: Could I have some kind of link in my static xml file to the xml file that I need so that the swf. file can still read it?

E.g. could I but in (where it says: <number>221</number>) <number>"link to another xml file"</number>

????

Is anyone here you could tell me?
It would help me alot.

Best regards,
Larus
 
[1] If the (flash) application support xml-stylesheet processing-instruction, you can (at least) try to use the idea of "transclusion" within xslt 1.0 and devise the static xsl document to do the transformation before feeding to the swf. The detail was once layed out in a previous thread I was involved with.

[2] I guess however the application should support dynamic chart source (as a norm?). If it is not your design, you should read their document for that possiblility. Otherwise, one of the application out there supports php/asp/... dynamic chart soure.
Check out its chart source part of its tutorial. The idea then is the same using xsl to grab external source.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top