Using XSL pages in Design View?
Copy link to clipboard
Copied
I'm working on a site built in XSL pages. These pages transform on the server with server side XML and then are served to the browser. I have been constantly frustrated with using this site with DW, but giving it another shot.
Is it possible to work on design view with .xsl pages? It seems the only option I have available is code view.
Copy link to clipboard
Copied
Please see https://helpx.adobe.com/au/dreamweaver/using/xml-xslt.html
Copy link to clipboard
Copied
So, I've read that quite a few times.
In our site, all of the pages we have are XSLT fragments. Each page imports the site template which includes the header template at the top, the page body is that XSLT fragment, and then the common footer template.
Our pages are transformed on the server in Java and not a PHP or ASP page.
Is it the fact that each of our pages (XSLT Fragment) do not start with a body or head tag that Dreamweaver isn't allowing this document to be viewed in design view? (because those opening tags are in the included header template?)
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="templates/webpageTemplate.xsl" />
<xsl:output method="html" version="4.0" encoding="UTF-8" omit-xml-declaration="yes" indent="yes" />
<!-- <header> Section -->
<xsl:template name="pageHeader"></xsl:template>
<!-- <body> Section -->
<xsl:template name="pageBody">
[ page content goes here...]
</xsl:template>
Copy link to clipboard
Copied
Design view is a remnant from the days of Macromedia and not very reliable. Have you tried Live view?
Copy link to clipboard
Copied
code view is the only option
Copy link to clipboard
Copied
I know for sure that Dreamweaver cannnot parse server-side includes, etc without a local testing server. And as you can see from my screenshot, Dreamweaver has no support for a JAVA server model.
Advanced, Testing Server Model
So this isn't going to happen. Sorry.

