You currently use XSLT to generate HTML from your XML, correct? You could write 
another XSLT file that generates BXML (for example, one that produces a 
TablePane containing Labels vs. an HTML <table> containing text).

How does the server know which XSLT file to apply to your XML? Is it based on a 
User-Agent header or something like that? If so, you can just execute a 
GetQuery and set this header to some known value for your Pivot app. If you set 
the query's serializer to an instance of BXMLSerializer, it will return your 
table pane when it has finished executing. You can then set this return value 
as the view in your scroll pane.

Note that you can also include script code in your generated BXML if you need 
to apply any logic to the content (similar to including JavaScript in your 
generated HTML).

Hope this helps,
Greg

On Nov 23, 2010, at 10:32 AM, MSafiri wrote:

> 
> Dear Greg,
> 
> I am obliged to revisit this topic, sorry for that. I try to explain what we
> have today - this is what we have to migrate to PIVOT.
> 
> The two systems are exchanging data via a specific XML message. Each XML
> message has a key, which stores the action to be fired when such message
> arrives. When the XML message is selected by the user, the application
> checks this action and selects the appropriate XSLT config file. Then
> creates a specific XML message, which then displayed as the sample I sent.
> 
> It is, basically, as you said, a TextArea inside a ScrollPane within the
> Pane. The issue is, that XSLT allows us to create the config file (what to
> display) outside of the application. When we need to customize the
> application to different Clients, we simply modify the config file and
> voila.
> 
> If I understood you well, we should build the table, within the ScrollPane
> from the code. How this allows us to create a custom implementation? Is
> there a way to create a config file, which then loaded by PIVOT, which then
> generates the TableView?
> 
> Regards,
> 
> MSafiri
> -- 
> View this message in context: 
> http://apache-pivot-users.399431.n3.nabble.com/How-to-build-similar-interface-tp1922947p1954022.html
> Sent from the Apache Pivot - Users mailing list archive at Nabble.com.

Reply via email to