Submit Search
Upload
20131108 Web.config transformation_syntax by jax
•
Download as PPT, PDF
•
0 likes
•
440 views
L
LearningTech
Follow
Web.config Transformation_syntax by Jax
Read less
Read more
Technology
News & Politics
Report
Share
Report
Share
1 of 7
Download now
Recommended
Web Application Development with Breeze.js
Web Application Development with Breeze.js
Viacheslav Bukach
Model-Driven Software Development - Language Workbenches & Syntax Definition
Model-Driven Software Development - Language Workbenches & Syntax Definition
Eelco Visser
Yes or no question
Yes or no question
Yudhie Indra
Inflection and derivation
Inflection and derivation
Yackub Ckoplack
modal verbs
modal verbs
Muhammad Talha
Uterine inversion & cord prolapse
Uterine inversion & cord prolapse
Nandinii Ramasenderan
Introduction to Language and Linguistics 005: Morphology & Syntax
Introduction to Language and Linguistics 005: Morphology & Syntax
Meagan Louie
Derivation & inflection
Derivation & inflection
Linda Julie
Recommended
Web Application Development with Breeze.js
Web Application Development with Breeze.js
Viacheslav Bukach
Model-Driven Software Development - Language Workbenches & Syntax Definition
Model-Driven Software Development - Language Workbenches & Syntax Definition
Eelco Visser
Yes or no question
Yes or no question
Yudhie Indra
Inflection and derivation
Inflection and derivation
Yackub Ckoplack
modal verbs
modal verbs
Muhammad Talha
Uterine inversion & cord prolapse
Uterine inversion & cord prolapse
Nandinii Ramasenderan
Introduction to Language and Linguistics 005: Morphology & Syntax
Introduction to Language and Linguistics 005: Morphology & Syntax
Meagan Louie
Derivation & inflection
Derivation & inflection
Linda Julie
vim
vim
LearningTech
PostCss
PostCss
LearningTech
ReactJs
ReactJs
LearningTech
Docker
Docker
LearningTech
Semantic ui
Semantic ui
LearningTech
node.js errors
node.js errors
LearningTech
Process control nodejs
Process control nodejs
LearningTech
Expression tree
Expression tree
LearningTech
SQL 效能調校
SQL 效能調校
LearningTech
flexbox report
flexbox report
LearningTech
Vic weekly learning_20160504
Vic weekly learning_20160504
LearningTech
Reflection & activator
Reflection & activator
LearningTech
Peggy markdown
Peggy markdown
LearningTech
Node child process
Node child process
LearningTech
20160415ken.lee
20160415ken.lee
LearningTech
Peggy elasticsearch應用
Peggy elasticsearch應用
LearningTech
Expression tree
Expression tree
LearningTech
Vic weekly learning_20160325
Vic weekly learning_20160325
LearningTech
D3js learning tips
D3js learning tips
LearningTech
git command
git command
LearningTech
More Related Content
More from LearningTech
vim
vim
LearningTech
PostCss
PostCss
LearningTech
ReactJs
ReactJs
LearningTech
Docker
Docker
LearningTech
Semantic ui
Semantic ui
LearningTech
node.js errors
node.js errors
LearningTech
Process control nodejs
Process control nodejs
LearningTech
Expression tree
Expression tree
LearningTech
SQL 效能調校
SQL 效能調校
LearningTech
flexbox report
flexbox report
LearningTech
Vic weekly learning_20160504
Vic weekly learning_20160504
LearningTech
Reflection & activator
Reflection & activator
LearningTech
Peggy markdown
Peggy markdown
LearningTech
Node child process
Node child process
LearningTech
20160415ken.lee
20160415ken.lee
LearningTech
Peggy elasticsearch應用
Peggy elasticsearch應用
LearningTech
Expression tree
Expression tree
LearningTech
Vic weekly learning_20160325
Vic weekly learning_20160325
LearningTech
D3js learning tips
D3js learning tips
LearningTech
git command
git command
LearningTech
More from LearningTech
(20)
vim
vim
PostCss
PostCss
ReactJs
ReactJs
Docker
Docker
Semantic ui
Semantic ui
node.js errors
node.js errors
Process control nodejs
Process control nodejs
Expression tree
Expression tree
SQL 效能調校
SQL 效能調校
flexbox report
flexbox report
Vic weekly learning_20160504
Vic weekly learning_20160504
Reflection & activator
Reflection & activator
Peggy markdown
Peggy markdown
Node child process
Node child process
20160415ken.lee
20160415ken.lee
Peggy elasticsearch應用
Peggy elasticsearch應用
Expression tree
Expression tree
Vic weekly learning_20160325
Vic weekly learning_20160325
D3js learning tips
D3js learning tips
git command
git command
20131108 Web.config transformation_syntax by jax
1.
XML Transformation Syntax by
Jax
2.
• Locator Attribute
Syntax – Condition – Match – XPath • Transform Attribute Syntax – – – – – – – – Replace Insert InsertBefore InsertAfter Remove RemoveAll RemoveAttributes SetAttributes
3.
Sample <?xml version="1.0"?> <configuration> <appSettings> <add key="appName" value="Test-Project" /> </appSettings> </configuration> <?xml version="1.0" encoding="utf-8" ?> <configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform"> <appSettings> <add key="appName" value="Publish-Project" xdt:Transform="Replace" xdt:Locator="Match(key)" /> </appSettings> </configuration>
4.
Locator Attribute Syntax <add key="appName" value="Publish-Project" xdt:Transform="Replace" xdt:Locator="Condition(@key='appName' or
@key='appTitle')” /> <add key="appName" value="Publish-Project" xdt:Transform="Replace" xdt:Locator="Match(key)" /> <add key="appName" value="Publish-Project" xdt:Transform="Replace" xdt:Locator="XPath(configuration/appSettings[@name='appName'])" />
5.
Transform Attribute Syntax <add
key="appName“ value="Publish-Project“ xdt:Transform="Replace“ xdt:Locator="Match(key)" /> <add key="appName“ value="Publish-Project“ xdt:Transform=“Insert“ /> <add key="appName“ value="Publish-Project“ xdt:Transform=“InsertBefore(/configuration/appSettings/add[@key=‘site‘])" /> <add key="appName“ value="Publish-Project“ xdt:Transform=“InsertAfter(/configuration/appSettings/add[@key=‘site‘])" />
6.
<add key="appName“ xdt:Transform=“Remove“ xdt:Locator="Match(key)" /> <add
key="appName“ xdt:Transform=“RemoveAll“ xdt:Locator="Match(key)" /> <add xdt:Transform=“RemoveAll“ /> <add key="appName" xdt:Transform="RemoveAttributes(debug,batch)" xdt:Locator="Match(key)" /> <add key="appName" desc="Project Description" xdt:Transform="SetAttributes(desc)" xdt:Locator="Match(key)" />
7.
參考來源 Web.config Transformation Syntax
for Web Project Deployment Using Visual Studio http://msdn.microsoft.com/en-us/library/dd465326.aspx
Download now