Feature: include module from within XSLT files #2510

Open
opened 2022-03-16 13:57:28 +00:00 by max.mehl · 1 comment
Owner

It would be great to be able to include a module from within an .xsl file.

Pseudo example index.xsl:

<xsl:if test="$signup = 'yes'">
  <module id="banner-subscribe" />
</xsl:if>

My workaround is to do this:

<xsl:apply-templates select="/buildinfo/document/set/module[@filename='banner-subscribe']/node()" />

and add global/data/modules/banner-subscribe:[] in the corresponding .sources file.

Basically the mirror of #2511.

It would be great to be able to include a module from within an .xsl file. Pseudo example `index.xsl`: ```xsl <xsl:if test="$signup = 'yes'"> <module id="banner-subscribe" /> </xsl:if> ``` My workaround is to do this: ```xsl <xsl:apply-templates select="/buildinfo/document/set/module[@filename='banner-subscribe']/node()" /> ``` and add `global/data/modules/banner-subscribe:[]` in the corresponding `.sources` file. Basically the mirror of #2511.
max.mehl added the
feature-request
xsl
build
labels 2022-03-16 13:57:28 +00:00
Member

Please see 1173e7710b224987c1410441eb2156560560c799 for an example how this can be done already without this workaround.

Please see 1173e7710b224987c1410441eb2156560560c799 for an example how this can be done already without this workaround.
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: FSFE/fsfe-website#2510
No description provided.