Feature: include XSLT templates in modules #2511

Open
opened 2022-03-16 14:01:40 +00:00 by max.mehl · 0 comments
Owner

It would be useful to be able to call XSL templates in modules.

Example module example.en.xml:

<?xml version="1.0" encoding="UTF-8"?>
<data>
  <version>1</version>
  <module>
    <h2>
      <!-- Get the translation of the "subscribe" string in texts.*.xml -->
      <xsl:call-template name="gettext">
        <xsl:with-param name="id" select="'subscribe'" />
      </xsl:call-template>
    </h2>
      
    <p>Some other text</p>
  </module>
</data>

Basically the other way round of #2510.

It would be useful to be able to call XSL templates in modules. Example module `example.en.xml`: ```xml <?xml version="1.0" encoding="UTF-8"?> <data> <version>1</version> <module> <h2> <!-- Get the translation of the "subscribe" string in texts.*.xml --> <xsl:call-template name="gettext"> <xsl:with-param name="id" select="'subscribe'" /> </xsl:call-template> </h2> <p>Some other text</p> </module> </data> ``` Basically the other way round of #2510.
max.mehl added the
feature-request
xsl
build
labels 2022-03-16 14:01:47 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
1 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#2511
No description provided.