Hello and thank you for reading my questions!
I am currently learning enterprise patterns, and as far as I understand transform view is a pattern which allows us to isolate UI and business’ logic.
Could we explain the following example? It is being extracted from my teacher’s university lessons:
I understand that an album is being created after querying the database with the name of it extracted from the client’s request. Then the style sheet xsl is being processed to write the XML which represents our album.
Why would we want to write in XLS language to convert it into XML then? What benefit does it give to us?
From the above picture I understand that we put the album’s body’s background color as white. Why is used xsl:apply-template? I have also read: https://docs.oracle.com/javase/tutorial/jaxp/xslt/transformingXML.html
The XML result could be:
Also from the UML:
I think that Transform View is an isolation between UI and business’ logic, likewise Front Controller is an isloation between navigation and business’ logic, is it correct?