--- In flexcoders@yahoogroups.com, "oneworld95" <[EMAIL PROTECTED]> wrote: > > Well, maybe it's more efficient to do this another way. Let me explain > what I'm trying to accomplish and see what you think is the best way > to it: I'd like to grab a text file (XML or HTML) and load it into a > Flex control and have it formatted correctly without having to fetch > individual elements from the XML and putting them into label controls. > Thanks. > > -Alex > > --- In flexcoders@yahoogroups.com, "jim.abbott45" <jim.abbott45@> > wrote: > > > > Or you could just use the ExternalInterface API to call the XSL(T) > > engine that most mainstream browsers include these days. That said, > > there is (in my opinion) still the question of whether that approach > > leads to a robust solution, particularly w.r.t. cross-browser > > differences . . . > > > > If you want to pursue that approach, this appears to be a good resource: > > http://ajaxpatterns.org/Browser-Side_XSLT > > > > > > --- In flexcoders@yahoogroups.com, "oneworld95" <oneworld95@> wrote: > > > > > > Can XSL be used to tell Flex how to display XML data? I've got an XML > > > help file that I'd like to display in a popup window in Flex without > > > having to fetch each element; I'd like to just dump the contents into > > > a Flex control and have it automatically apply styles to it. Thanks. > > > > > >
Alex, with my component, I grab an HTML file which is formatted using the limited set of tags that the TextArea component supports. Then I set the htmlText property of the TextArea instance. I can also call a servlet URL that transforms the help text in XML format and apply the formatting using an xsl stylesheet. The Flex part only knows it is calling a URL and getting back formatted text. /Paul