Skip to content

Commit

Permalink
Refactor finalisation code.
Browse files Browse the repository at this point in the history
  • Loading branch information
iay committed Jun 8, 2013
1 parent f7f6410 commit d0c70e8
Showing 1 changed file with 23 additions and 24 deletions.
47 changes: 23 additions & 24 deletions mdx/uk/generate.xml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,25 @@
</property>
</bean>

<!--
finalise_parent
Template for a stage used in each output pipeline which performs
final tweaks on the document.
-->
<bean id="finalise_parent" abstract="true" parent="XSLTransformationStage">
<property name="xslResource">
<bean parent="ClasspathResource">
<constructor-arg value="uk/final_tweak.xsl"/>
</bean>
</property>
<property name="transformParameters">
<map>
<entry key="publisher" value-ref="uk_federation_uri"/>
</map>
</property>
</bean>


<!--
***********************
Expand Down Expand Up @@ -277,13 +296,8 @@
***************************************************
-->

<bean id="uk_finaliseProduction" parent="XSLTransformationStage"
<bean id="uk_finaliseProduction" parent="finalise_parent"
p:id="uk_finaliseProduction">
<property name="xslResource">
<bean parent="ClasspathResource">
<constructor-arg value="uk/final_tweak.xsl"/>
</bean>
</property>
<property name="transformParameters">
<map>
<entry key="publisher" value-ref="uk_federation_uri"/>
Expand Down Expand Up @@ -371,13 +385,8 @@
***********************************************
-->

<bean id="uk_finaliseFallback" parent="XSLTransformationStage"
<bean id="uk_finaliseFallback" parent="finalise_parent"
p:id="uk_finaliseFallback">
<property name="xslResource">
<bean parent="ClasspathResource">
<constructor-arg value="uk/final_tweak.xsl"/>
</bean>
</property>
<property name="transformParameters">
<map>
<entry key="extraText" value="Feature fallback metadata; not for production use"/>
Expand Down Expand Up @@ -433,13 +442,8 @@
***************************************
-->

<bean id="uk_finaliseTest" parent="XSLTransformationStage"
<bean id="uk_finaliseTest" parent="finalise_parent"
p:id="uk_finaliseTest">
<property name="xslResource">
<bean parent="ClasspathResource">
<constructor-arg value="uk/final_tweak.xsl"/>
</bean>
</property>
<property name="transformParameters">
<map>
<entry key="extraText" value="Feature test metadata; not for production use"/>
Expand Down Expand Up @@ -495,13 +499,8 @@
*******************************************
-->

<bean id="uk_finaliseExport" parent="XSLTransformationStage"
<bean id="uk_finaliseExport" parent="finalise_parent"
p:id="uk_finaliseExport">
<property name="xslResource">
<bean parent="ClasspathResource">
<constructor-arg value="uk/final_tweak.xsl"/>
</bean>
</property>
<property name="transformParameters">
<map>
<entry key="extraText" value="Prototype export metadata; not for production use"/>
Expand Down

0 comments on commit d0c70e8

Please sign in to comment.