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

  • Home
  • SEARCH
  • 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 6085837
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T11:41:02+00:00 2026-05-23T11:41:02+00:00

What I’d like to do is, from inside a (.Net) XSLT transformation, I will

  • 0

What I’d like to do is, from inside a (.Net) XSLT transformation, I will invoke a template that will return some XML, but the returned XML may itself include XSLT instructions to be processed. This process should operate recursively until there is no XSLT left, and then the output will be put into the result tree.

It may be that each “template” actually has to be a separate file, but I’d like to have the context (parameters, variables, and context nodes etc) maintained throughout the whole process, so just having recursive invocations of the Transform() method seems like it will not suffice.

A somewhat related question: say I call an extension function from inside a template. Is there a way to invoke a template from inside the extension function? It seems that the documentation on extension objects is extremely light – it tells you how to call it but doesn’t document any parts of the xslt infrastructure I can interact with.

Apologies for not providing a decent concrete example but I’m in a research phase at the moment so it’s all a bit abstract.

Andy

  • 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-05-23T11:41:03+00:00Added an answer on May 23, 2026 at 11:41 am

    If the result of a transformation has nodes in the http://www.w3.org/1999/XSL/Transform namespace then you are dynamically generating XSLT, and to execute the generated XSLT you need to start/invoke a new transformation, it cannot be done from XSLT (at least not without an extension function).

    It may be that each “template”
    actually has to be a separate file,
    but I’d like to have the context
    (parameters, variables, and context
    nodes etc) maintained throughout the
    whole process, so just having
    recursive invocations of the
    Transform() method seems like it will
    not suffice.

    You are talking about templates a lot, but XSLT operates with modules, templates is just one of the types of declarations a module can have. Why do you want parameters, variables, and context nodes to be mantained? After a transformation is done this information is no longer needed.

    A somewhat related question: say I
    call an extension function from inside
    a template. Is there a way to invoke a
    template from inside the extension
    function?

    No, you cannot invoke a template from an extension function.

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

Sidebar

Related Questions

For some reason, after submitting a string like this Jack’s Spindle from a text
I've got a string that has curly quotes in it. I'd like to replace
I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
We are using XSLT to translate a RIXML file to XML. Our RIXML contains
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I need a function that will clean a strings' special characters. I do NOT
I have some data like this: 1 2 3 4 5 9 2 6
I'm working with an upstream system that sometimes sends me text destined for HTML/XML
I would like to count the length of a string with PHP. The string

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.