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 640049
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T20:54:37+00:00 2026-05-13T20:54:37+00:00

I’m totally stuck on what is going on when I try to run the

  • 0

I’m totally stuck on what is going on when I try to run the following xml against an xsl in an attempt to not get a blank page in the browser:

xml:

<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="transform.xsl"?>
<Structure>
    <Processes>
        <Process>
            .
            .
            .
        </Process>
    </Processes>
</Structure>

xsl:

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
    <!--trying to convert the tag to another name -->
    <xsl:template match="/">
        <xsl:element name="NewStructure">
            <xsl:apply-templates select="Processes" />
        </xsl:element>
    </xsl:templates>
    <xsl:template name="convert_processes_tag" match="Processes">
        <xsl:for-each select="Processes">
            <xsl:element name="NewProcess" />
        </xsl:for-each>
    </xsl:template>
</xsl:stylesheet>

My goal is to replace the Processes tag with something else, and subsequently all the other tags inside the xml too. My first attempt was to convert the outter most tags first. I have tried cutting down both the xml and the xsl to its skeleton, but all I got was a blank page. I tried googling, but it only further confuses me. I know xsl:template is like a method in OOP, and I wanted to separate it because there will be a lot of looping involved in converting the tags to different names.

Been stuck for hours… any help would be appreciated.

EDIT: I was testing this against IE. Someone has pointed out that XML does not show up when testing in IE. Is that the case?

TIA.

  • 1 1 Answer
  • 2 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-13T20:54:37+00:00Added an answer on May 13, 2026 at 8:54 pm

    A browser is not the right tool if you want to debug XSLT that transforms XML to XML, unless it is a browser like Firefox or Opera and your target XML format is a format like SVG or MathML or XHTML the browser knows to render.
    IE is useful if you transform XML to HTML (xsl:output method=”html”) or maybe plain text (xsl:output method=”text”) but when you use it to transform XML to XML (xsl:output method=”xml”) then don’t expect you to show anything but the text nodes in the result document. And in your case you do not even have any text nodes that contain non white space characters so there is nothing to display.

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

Sidebar

Related Questions

No related questions found

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.