Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8477763
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T18:33:13+00:00 2026-06-10T18:33:13+00:00

I have an xsl script that adds common features to each form build with

  • 0

I have an xsl script that adds common features to each form build with form builder. I would like for the script to be applied at run-time each time a form is opened. I tried to do the following as explained in http://wiki.orbeon.com/forms/how-to/other/implement-transformation-service:

In /WEB-INF/resources/page-flow.xml I added the following line

...
<page path-info="/fr/([^/]+)/([^/]+)/(new|edit|view)(/([^/]+))?"  
 matcher="oxf:perl5-matcher" view="test.xsl"/>
...

just before the line

<epilogue url="/config/epilogue.xpl"/>

And I also added the test.xsl in /WEB-INF/resources/apps/fr/ :

<xsl:stylesheet version="1.0"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:xhtml="http://www.w3.org/1999/xhtml">

    xsl:template match="@*|node()" name="identity">
        <xsl:copy>
            <xsl:apply-templates select="@*|node()"/>
        </xsl:copy>
    </xsl:template>

    <xsl:template match="/xhtml:html/xhtml:body">
        <xsl:copy>
            <xforms:output value="'test'"/>
            <xsl:apply-templates select="@*|node()"/>
        </xsl:copy>
    </xsl:template>

</xsl:stylesheet>

But the script never gets applied to the forms? How can I correct this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T18:33:15+00:00Added an answer on June 10, 2026 at 6:33 pm

    To do this specifically for Form Runner, you can edit unroll-form.xpl, and for instance add your transformation before everything else in the pipeline. You would do this by adding after the last p:param:

    <p:processor name="oxf:xslt">
        <p:input name="data" href="#data"/>
        <p:input name="config" href="my-transformation.xsl"/>
        <p:output name="data" id="transformed-data"/>
    </p:processor>
    

    And then renaming the 2 occurrences of #data to #transformed-data. (You can of course pick names are more telling of what your transformation does.)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an XSLT script which I would like to number things sequentially each
I have a Run Script phase on my target that renders a PDF manual.
I have an XML file that I need to transform using an XSL script.
I have python script that converts data.xml to html using stylesheet.xsl. And i have
I have the following code <xsl:result-document href=output1/output3/index.html format=html> <html> <head> <SCRIPT LANGUAGE=JavaScript> function getParams()
I have an XSL that is transforming one XSD into another XSD that has
I have an xsl:fo style sheet that refers to a URL which is an
I have an XSL stylesheet (A) that imports another one (B). A overrides a
I have a xsl:variable ($features-list) specified in my XSL which contains a tree fragment
I have an xslt script that transforms an xml file to another xml file.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.