?
Solved

Format XML with XSL & import into Flash

Posted on 2010-01-08
4
Medium Priority
?
304 Views
Last Modified: 2013-11-08
Hi there.  Hope someone can help me out.  I successfully imported XML content into my Flash file (actions script 3 / CS4)... imported into a dynamic text box.  Now I just want to be able to format/stylize the text.  I've been searching the web and found that the best practice to go about this is to create an XSL file to format the XML.  I know you have to include the XSL within the XML doc.like this below, but I'm just having trouble overall seeing how to format the text in the XML file and associate it to the XML file.  Can you give me a short piece of code to show me simply how this all works?  Send me small bit of code for XML, XSL and let me know if using XSL will impact my action script in Flash at all.  **This is the best practice, yes?

 <?xml version="1.0" encoding="ISO-8859-1" ?>  
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

Thank you!
0
Comment
Question by:webgirl29
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 40

Expert Comment

by:Richard Quadling
ID: 26289031
XSL is another language completely.

I don't know the specifics of the language and in all my uses of it, it is slow in comparison to processing the file manually (via a DOM let's say).

Also, does Flash support XSL? Don't know.

The W3C school site (http://www.w3schools.com/xsl/) has a fairly gentle introduction to XSLT.

Maybe start with one of their examples to make sure it all works as expected inside Flash.

Then let's take a look at what you want to do.
0
 

Accepted Solution

by:
webgirl29 earned 0 total points
ID: 26289553
Actually, I found out that Flash does NOT support XSL, and I found another option with Flash to import and style my dynamic text.  Thank you for your response however.
0
 
LVL 40

Expert Comment

by:Richard Quadling
ID: 26291260
Another option would be to do the translation server side and then push this to flash.

Is that an option you could use?

If so, what server side environment do you have? Windows/Unix, ASP/PHP/Perl?
0

Featured Post

Get real performance insights from real users

Key features:
- Total Pages Views and Load times
- Top Pages Viewed and Load Times
- Real Time Site Page Build Performance
- Users’ Browser and Platform Performance
- Geographic User Breakdown
- And more

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The Confluence of Individual Knowledge and the Collective Intelligence At this writing (summer 2013) the term API (http://dictionary.reference.com/browse/API?s=t) has made its way into the popular lexicon of the English language.  A few years ago, …
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question