Skip to content Skip to sidebar Skip to footer

Xslt: Colon In Attribute Name In Source Xml

I am trying to transform the android xml into Plist but i am facing the issue because the Android XML contains COLONS in the attribute names as follows:

Solution 1:

Please read about XML Namespaces, a good starting point can be XML Namespaces tutorial on w3schools.com to know about the usage of "colons".

You could read the MSDN article about XML Namespaces and How They Affect XPath and XSLT to know more.

Solution 2:

I managed by using the exclude-result-prefixes attribute inside in XSLT. My stylesheet tag looked like below.

<xsl:stylesheetversion="1.0"xmlns:xsl="http://www.w3.org/1999/XSL/Transform"xmlns:android="http://schemas.android.com/apk/res/android"exclude-result-prefixes="android">

exclude-result-prefixes attribute is used if you want to exclude any namespace during compile time.

Post a Comment for "Xslt: Colon In Attribute Name In Source Xml"