Skip to content

Commit

Permalink
Pass the members file location to the statistics transform
Browse files Browse the repository at this point in the history
The previous approach of passing the document is incompatible
with the JDK processor.
  • Loading branch information
iay committed Oct 4, 2024
1 parent 56bd01c commit f5e4cfb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion mdx/uk/beans.xml
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@
p:XSLResource="classpath:uk/statistics.xsl">
<property name="transformParameters">
<map>
<entry key="memberDocument" value-ref="uk_membersDocument"/>
<entry key="memberDocumentLocation" value="${members.dir}/members.xml"/>
<entry key="now_ISO" value-ref="now_ISO"/>
</map>
</property>
Expand Down
7 changes: 4 additions & 3 deletions mdx/uk/statistics.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,12 @@
<xsl:output method="html" omit-xml-declaration="yes"/>

<!--
memberDocument
memberDocumentLocation
The members.xml file, as a DOM document, is passed as a parameter.
The location of the members.xml file is passed as a parameter.
-->
<xsl:param name="memberDocument"/>
<xsl:param name="memberDocumentLocation"/>
<xsl:variable name="memberDocument" select="document($memberDocumentLocation)"/>

<!--
now_ISO
Expand Down

0 comments on commit f5e4cfb

Please sign in to comment.