diff options
Moved generation stage stylesheets into "detail" folder
* they are read by FunctionReadFile to and passed to FunctionGenerate as a DOM tree to execute them as if they where located in the parent directory
** this is required so they behave as expected without requiring all paths to be absolute
* this change was implemented to make it clear that "make.xsl" is the main generation stylesheet
** additionally this further separates the framework implementation from the site-specific stylesheets and contents
-rw-r--r-- | detail/list.xsl (renamed from list.xsl) | 2 | ||||
-rw-r--r-- | detail/plan.xsl (renamed from plan.xsl) | 2 | ||||
-rw-r--r-- | detail/process.xsl (renamed from process.xsl) | 2 | ||||
-rw-r--r-- | detail/summarize.xsl (renamed from summarize.xsl) | 0 | ||||
-rw-r--r-- | make.xsl | 10 |
5 files changed, 8 insertions, 8 deletions
diff --git a/list.xsl b/detail/list.xsl index 93585e8..3ba6f94 100644 --- a/list.xsl +++ b/detail/list.xsl @@ -13,7 +13,7 @@ indent="no" /> -<xsl:include href="utility/datasource.xsl"/> +<xsl:include href="[utility/datasource.xsl]"/> <xsl:template name="list"> <xsl:param name="base"/> diff --git a/plan.xsl b/detail/plan.xsl index bef6fc5..2479371 100644 --- a/plan.xsl +++ b/detail/plan.xsl @@ -15,7 +15,7 @@ indent="no" /> -<xsl:include href="utility/datasource.xsl"/> +<xsl:include href="[utility/datasource.xsl]"/> <xsl:template name="traverse"> <xsl:param name="source"/> diff --git a/process.xsl b/detail/process.xsl index 4010f4b..3ccbd36 100644 --- a/process.xsl +++ b/detail/process.xsl @@ -15,7 +15,7 @@ indent="no" /> -<xsl:include href="utility/datasource.xsl"/> +<xsl:include href="[utility/datasource.xsl]"/> <xsl:variable name="source_tree" select="$root/source"/> diff --git a/summarize.xsl b/detail/summarize.xsl index b4e6375..b4e6375 100644 --- a/summarize.xsl +++ b/detail/summarize.xsl @@ -23,7 +23,7 @@ <xsl:copy-of select="InputXSLT:generate( $input, - string($transformation) + InputXSLT:read-file(string($transformation))/self::file/node() )/self::generation/node()"/> </xsl:template> @@ -40,27 +40,27 @@ <xsl:variable name="plan_source"> <xsl:call-template name="generate"> <xsl:with-param name="input" select="$list_source"/> - <xsl:with-param name="transformation">list.xsl</xsl:with-param> + <xsl:with-param name="transformation">detail/list.xsl</xsl:with-param> </xsl:call-template> </xsl:variable> <xsl:variable name="process_source"> <xsl:call-template name="generate"> <xsl:with-param name="input" select="$plan_source"/> - <xsl:with-param name="transformation">plan.xsl</xsl:with-param> + <xsl:with-param name="transformation">detail/plan.xsl</xsl:with-param> </xsl:call-template> </xsl:variable> <xsl:variable name="summarize_source"> <xsl:call-template name="generate"> <xsl:with-param name="input" select="$process_source"/> - <xsl:with-param name="transformation">process.xsl</xsl:with-param> + <xsl:with-param name="transformation">detail/process.xsl</xsl:with-param> </xsl:call-template> </xsl:variable> <xsl:call-template name="generate"> <xsl:with-param name="input" select="$summarize_source"/> - <xsl:with-param name="transformation">summarize.xsl</xsl:with-param> + <xsl:with-param name="transformation">detail/summarize.xsl</xsl:with-param> </xsl:call-template> </xsl:template> |