1. Mike Kolenda
  2. PowerBuilder
  3. Wednesday, 23 February 2022 22:00 PM UTC

Are there any alternatives available in PowerBuilder that assist us in creating XSLT for a Datawindow?

I've been experimenting with the XML Template in the DataWindow Painter and it appears to be able to rename the elements, add attributes and some other XML editing to be applied to the XML file during export. It doesn't appear to be able to generate an XSLT file. Is there an option I'm missing to provide this along with the XML file?

- Mike

 

 

 

Mike Kolenda Accepted Answer Pending Moderation
  1. Friday, 25 February 2022 22:03 PM UTC
  2. PowerBuilder
  3. # 1

Thanks, Chris.

Those methods contain the XML\XHTML output but not the transformation code of the XLST.

We're looking to provide the client with an additional XLST file or to to transform the original XML contents of the export. The above logic may work if I have a way to switch out templates, but I don't think that is what the client is looking for at this time.

Thanks for the input!

Regards, 

Mike

Comment
There are no comments made yet.
Mike Kolenda Accepted Answer Pending Moderation
  1. Thursday, 24 February 2022 22:08 PM UTC
  2. PowerBuilder
  3. # 2

Yes, Chris. that is exactly what I was experimenting with. But it appears to store the templates for the XML\HTML inside the source of the DW. Is there any way to obtain the XSLT in a file as opposed applying it to the contents exported?

Thanks, 

Mike

 

Comment
  1. Chris Pollach @Appeon
  2. Thursday, 24 February 2022 22:15 PM UTC
Hi Mike;



Well, if you can get it this way ...

ls_xmlstring = dw_1.Object.DataWindow.Data.XHTML

ls_xmlstring = dw_1.Describe("DataWindow.Data.XHTML")



Then why not just write the contents of ls_xmlstring to a file?

Regards ... Chris
  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Thursday, 24 February 2022 16:07 PM UTC
  2. PowerBuilder
  3. # 3

Hi Mike;

   Have you tried ... https://docs.appeon.com/pb2019/datawindow_programmers_guide/ch06s07.html

Regards .... Chris

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.