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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T10:10:33+00:00 2026-06-01T10:10:33+00:00

I’ve develop an XML stylesheet to transform a relatively simple XML file in VS2010.

  • 0

I’ve develop an XML stylesheet to transform a relatively simple XML file in VS2010. When I run XSLT Debugging in VS, it renders the expected output in a new window.

So I then added a link to the XSLT file in the source XML:

<?xml-stylesheet type="text/xsl" href="ABC.xslt"?>

However, when I view this file in a browser, I don’t get the transformed result. In IE9, Firefox and Chrome

The XSLT (probably in a modified form) will be used by a third party to generate the final XML, so it’s not essential it works – but it is a useful tool to demonstrate that the output from out database (which generates the starting XML), once transformed, will look like the final XML intended.

XML Example:

<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="abc.xslt"?>
<afterTreatmentSystemRequest>
    <afterTreatmentSystem>
        <ID>93073010005597</ID>
        <shipmentDate>20120330</shipmentDate>
        <technicalApprovalDate>20120330</technicalApprovalDate>
    </afterTreatmentSystem>
    <executionSettingsDate>2012-03-30T14:17:26</executionSettingsDate>
</afterTreatmentSystemRequest>

XSLT:

<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl"
>
    <xsl:output method="xml" indent="yes"/>

    <xsl:template match="/afterTreatmentSystemRequest">
            <nsmajorassemblyai:storeAfterTreatmentSystemRequest category="MajorAssemblyAdapter" delta="true" version="2.10" xmlns:nsmajorassemblyai="http://majorassembly.mysite.com/ai">
                <requestHeader userId="d2vswen"/>
                <xsl:apply-templates select="afterTreatmentSystem" />
                <xsl:apply-templates select="executionSettingsDate" />
            </nsmajorassemblyai:storeAfterTreatmentSystemRequest>
    </xsl:template>

    <xsl:template match="afterTreatmentSystem">
            <afterTreatmentSystem delta="true" dataCardAvailable="true">
                <xsl:attribute name="id">
                    <xsl:value-of select="ID"/>
                </xsl:attribute>
                <activeCustomer addressCity="" addressCountry="" addressStreet="" addressZip="" customerNumber="" firstname="" name=""/>
                <activeProductDate>
                    <xsl:attribute name="shipmentDate">
                        <xsl:value-of select="shipmentDate"/>
                    </xsl:attribute>
                    <xsl:attribute name="technicalApprovalDate">
                        <xsl:value-of select="technicalApprovalDate"/>
                    </xsl:attribute>
                </activeProductDate>
            </afterTreatmentSystem>
    </xsl:template>

    <xsl:template match="executionSettingsDate">
            <executionSettings causation="plant" issueThreshold="err" systemPriority="2" unresolvedConflictAction="notifyAdmin" userId="d2vswen">
                <xsl:attribute name="date">
                    <xsl:value-of select="."/>
                </xsl:attribute>
            </executionSettings>

    </xsl:template>
</xsl:stylesheet>

UPDATE:
I’ve re-inserted the XML and XSL segments – making sure they match the versions that are working well in VS2010. Following Dimitre’s suggestion to use the IE Developer Tools (F12), I can see that some of the transformation has taken place but I’m still missing the executionSettings element.

Expected Output:

<?xml version="1.0" encoding="utf-8"?>
<nsmajorassemblyai:storeAfterTreatmentSystemRequest category="MajorAssemblyAdapter" delta="true" version="2.10" xmlns:nsmajorassemblyai="http://majorassembly.mysite.com/ai">
  <requestHeader userId="d2vswen" />
  <afterTreatmentSystem delta="true" dataCardAvailable="true" id="93073010005597">
    <activeCustomer addressCity="" addressCountry="" addressStreet="" addressZip="" customerNumber="" firstname="" name="" />
    <activeProductDate shipmentDate="20120330" technicalApprovalDate="20120331" />
  </afterTreatmentSystem>
  <executionSettings causation="plant" issueThreshold="err" systemPriority="2" unresolvedConflictAction="notifyAdmin" userId="d2vswen" date="2012-03-30T14:17:26" />
</nsmajorassemblyai:storeAfterTreatmentSystemRequest>
  • 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-01T10:10:34+00:00Added an answer on June 1, 2026 at 10:10 am

    Previous answer deleted as you fixed the example.

    It works for me, both with saxon6 on the command line and IE (9) in the browser

    enter image description here

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

Sidebar

Related Questions

We are using XSLT to translate a RIXML file to XML. Our RIXML contains
I have just tried to save a simple *.rtf file with some websites and
In my XML file chapters tag has more chapter tag.i need to display chapters
I'm parsing an XML file, the creators of it stuck in a bunch social
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I want use html5's new tag to play a wav file (currently only supported
I am doing a simple coin flipping experiment for class that involves flipping a
I am trying to render a haml file in a javascript response like so:
I would like to run a str_replace or preg_replace which looks for certain words

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.