在xslt.Problems中读取Web.config xmlns属性

时间:2014-05-26 11:27:38

标签: c# xml xslt web.config-transform

web.config文件包含以下行

<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">

我尝试在XSLT(Get value from web.config into XSLT file)中阅读web.config。我没有成功,我尝试从配置文件中删除xmlns属性,我能够在XSLT中读取它没有太多问题。< / p>

在web.config文件中使用xmlns属性的好处/区别是什么?是否可以使用web.config中的xmlns属性将配置文件读入xslt?

1 个答案:

答案 0 :(得分:1)

请参阅类似的问题:如何使用命名空间读取节点值,在xslt和c#中。

Problem with XSLT getting values from tags with namespace prefixes

How to get an specific node in xml with namespaces?

相关问题