Microsoft Knowledge Base Email Alertz

KBAlertz.com: Explains how the XslTransform.Transform method incorrectly implements the scope for global parameters. Explains that local parameters with the same name as a global parameter are overwritten with the value of the global parameter.

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]

Search KbAlertz

Advanced Search

Webmasters
Put kbAlertz on your website.
[ Click Here for more! ]





ASP.NET 3.5 Web Hosting with Windows 2008 and SQL 2008: Click Here!
Discount ASP.NET Hosting
ASP.NET 2.0 and 3.5
Windows2008 and SQL2008
US and UK Hosting
The ad says 3 - but KBAlertz referrals get
** SIX MONTHS FREE **


Bug Tracking Software
For bug tracking software or defect tracking software or issue tracking software, visit Axosoft.


Community Site



We Send hundreds of thousands of emails using ASP.NET Email



Expert Web Design & Graphic Design
Design44.com

ASP.NET 3.5 Web Hosting with Windows 2008 and SQL 2008: Click Here!
Discount ASP.NET Hosting
ASP.NET 2.0 and 3.5
Windows2008 and SQL2008
US and UK Hosting
The ad says 3 - but KBAlertz referrals get
** SIX MONTHS FREE **




Mentioned In








Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks




Article ID: 834667 - Last Review: November 27, 2007 - Revision: 3.3

BUG: Local XSLT parameter values are overwritten when executing an XSLT Transformation in .NET Framework v1.1

On This Page

SYMPTOMS

Local Extensible Stylesheet Language Transformation (XSLT) parameter values (that is, parameters that are defined in an XSLT template) are overwritten by global parameter values when you execute XSLT transformations by using the XslTransform Microsoft .NET XSLT processor.

This behavior occurs when local parameters and global parameters that are defined in the style sheet have the same name, and when values are passed in for the global parameters at the time that the XSLT transformation is executed.

STATUS

Microsoft has confirmed that this is a problem in the .NET Framework version 1.1 XSLT Processor.

Steps to reproduce the behavior

  1. Download the XSLTParam.exe file.

    The following file is available for download from the Microsoft Download Center:

    Collapse this imageExpand this image
    Download
    Download the XSLTParam.exe package now. (http://download.microsoft.com/download/5/a/0/5a0c58ef-33cb-4fbb-a153-721859bf609c/xsltparam.exe)

    For additional information about how to download Microsoft Support files, click the following article number to view the article in the Microsoft Knowledge Base:
    119591  (http://kbalertz.com/Feedback.aspx?kbNumber=119591/ ) How to Obtain Microsoft Support Files from Online Services
    Microsoft scanned this file for viruses. Microsoft used the most current virus-detection software that was available on the date that the file was posted. The file is stored on security-enhanced servers that help to prevent any unauthorized changes to the file.
  2. Extract the files in the XSLTParam.zip file to a folder.
  3. Build and then run the XSLTParam solution that is present in the folder that you extracted the files to. The behavior that is mentioned in the "Symptoms" section of this article occurs.

REFERENCES

For more information, visit the following Microsoft Developer Network (MSDN) Web sites:
http://msdn2.microsoft.com/en-us/library/ms763742.aspx (http://msdn2.microsoft.com/en-us/library/ms763742.aspx)

http://msdn2.microsoft.com/en-us/library/system.xml.xsl(vs.71).aspx (http://msdn2.microsoft.com/en-us/library/system.xml.xsl(vs.71).aspx)

APPLIES TO
  • Microsoft .NET Framework 1.1
Keywords: 
kbdownload kbsample kbcode kbxml kbbug KB834667
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate

Be the first to leave feedback, to help others about this knowledge base article.

(Optional) Name

(Optional) Public URL Or Email

Comments
No HTML -- Text Only Please