Comments (2)
It seems like a bug in Microsoft.Web.XmlTransform, I will look into it.
the log info I got from Microsoft.Web.XmlTransform
Executing RemoveAttributes (transform line 1, 76)
on /_defaultNamespace:configuration
Applying to 'configuration' element (source line 2, 2)
patch20180523104824805.config (1, 76) warning: Argument 'xmlns' did not match any attributes
base.xml (2, 2) warning: No attributes found to remove
Done executing RemoveAttributes
from fatantelope.
I have found bug in AttributeTransform class of Microsoft.Web.Xdt
private XmlNodeList GetAttributesFrom(XmlNode node, IList<string> arguments, bool warnIfEmpty) {
string[] array = new string[arguments.Count];
arguments.CopyTo(array, 0);
string xpath = String.Concat("@", String.Join("|@", array));
XmlNodeList attributes = node.SelectNodes(xpath);
if (attributes.Count == 0 && warnIfEmpty) {
Debug.Assert(arguments.Count == 1, "Should only call warnIfEmpty==true with one argument");
if (arguments.Count == 1) {
Log.LogWarning(SR.XMLTRANSFORMATION_TransformArgumentFoundNoAttributes, arguments[0]);
}
}
return attributes;
}
XmlNodeList attributes = node.SelectNodes(xpath);
The SelectNodes did not consider the node could have xmlnamespace.
from fatantelope.
Related Issues (11)
- NPE at XdtDiffWriter: line 409 HOT 1
- Use Insert instead of InsertBefore when the delta only exist in target HOT 1
- Error when creating Transformed File HOT 3
- XPath in an InsertBefore transform is using a trait of the parent node that's been transformed into something else HOT 2
- Deploy command line tool with NuGet dist HOT 3
- Case error in generated XDT HOT 1
- the application is erroring out requiring a clear node in the source HOT 24
- Microsoft.Web.XmlTransform.XmlNodeException: No element in the source document matches HOT 8
- Wrong patch file generated when the attribute has xml namespace
- Incorrect condition? HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fatantelope.