Within my spring project, I am utilizing XsltViewResolver to transform XML into HTML using
org.springframework.web.servlet.view.xslt.XsltViewResolver
.
The issue I am facing is that the CSS styling is not being applied in the HTML output.
Here is a snippet of the XML string:
<?xml version="1.0"?>
<kblc:kblcImportLc xmlns:kblc='http://www.kblc.com/schema/v1/kblc'>
<kblc:ImportStructureLC>
<kblc:ImportLCHeader>
...
</kblc:ImportLCHeader>
</kblc:ImportStructureLC>
</kblc:kblcImportLc>
As well as the XSL file being used:
<?xml version="1.0"?>
...
And here is an example of the HTML output:
<html xmlns:kblc="http://www.kblc.com/schema/v1/kblc">
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
...
</head>
<body onload="init();">
<div id="ApplicantName">
...
</div>
<div id="ApplicantAddress">
...
</div>
</body>
</html>
Despite following this structure, the CSS styles are not rendering properly on the HTML page.