Re: [flexcoders] Re: Using XSL in Flex?

2008-12-03 Thread Fotis Chatzinikos
check the docs... It lists the tags it correctly parses/displays

On Wed, Dec 3, 2008 at 3:58 PM, oneworld95 [EMAIL PROTECTED] wrote:

   Thanks, Paul. I've noticed that the TextArea only parses a limited
 number of HTML tags; not sure which ones it allows and which it ignores.

 -Alex

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Paul
 Fischer [EMAIL PROTECTED]

 wrote:
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 oneworld95 oneworld95@ 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 flexcoders%40yahoogroups.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 flexcoders%40yahoogroups.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
 

  




-- 
Fotis Chatzinikos, Ph.D.
Founder,
Phinnovation
[EMAIL PROTECTED],


Re: [flexcoders] Re: Using XSL in Flex?

2008-12-02 Thread Sefi Ninio
Hey Paul,

Would you be willing to share that component?

On Tue, Dec 2, 2008 at 6:21 PM, Paul Fischer [EMAIL PROTECTED]wrote:

   --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 oneworld95 [EMAIL PROTECTED] 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.
 

 Yes, you can use XSL, but it is external to Flex. I created a custom
 TextArea component for displaying help text. It has a URL parameter
 that loads the text. The URL can be for a file that contains the text
 and html tags. Or it can be to a servlet which transforms the help xml
 using a xsl stylesheet and returns the final help text in a consistent
 format.

 /Paul