Search

Hi,

When I create a new page I get the following:

 <?xml version="1.0" encoding="UTF-8"?>
 <xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

 <xsl:output method="xml"
doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
omit-xml-declaration="yes"
encoding="UTF-8"
indent="yes" />

<xsl:template match="/">

</xsl:template>

</xsl:stylesheet>

However, I prefer to have the output method in the master.xsl file, is there anyway this can be changed?

Like this:

 <?xml version="1.0" encoding="UTF-8"?>
 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

 <xsl:import href="../utilities/master.xsl"/>

 <xsl:template match="data">

 </xsl:template>

 </xsl:stylesheet>

It would also be useful if the impot for master.xsl could be pre-entered, instead of me having to rewrite it each time I create a new page.

I think this is a question of what is most broadly applicable. I don't think we can safely assume that all users in all situations do not want to use the <xsl:output /> elements, nor can we assume, I think, that having master.xsl pre-entered is a universal need. Some sites, for instance, will have a series of 'master' utilities.

I do believe it's in the plan somewhere along the line to have a method of attaching utilities via the interface.

I await with baited breath. :)

You can do it manually if you like. The default output for new pages is at around line 148 in symphony/content/content.blueprintspages.php, so if you're finding it a really pain you can just change that for the time being.

Would be cool to be able to specific the default somewhere in the Symphony admin though.

I would like to be able to change the default too. This feature request has been added.

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details