![]() |
|
|
|
| ||||||
|
Welcome to the The ProgrammersTalk Community forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
| Tags: |
![]() |
![]() | | LinkBack | Thread Tools | Display Modes | ![]() |
| |||
| [SOLVED] I am writing an Xslt .I have the input xml and output xml elements name... ...same, but , defined in different xsds. I want to use the Copy-of function of xslt for better result. The problem is since both the source elements and target elements are defined in different xsds the namespace prefix will be a barrier to use copy-of function. Is there any way to replace the namespcae prefix of an element and still use a copy-of function. |
| |
| |||
| <xsl:template match="*"> <xsl:element name="{name()}" namespace="{namespace-uri()}"> <xsl:copy-of select="@*"/> <xsl:apply-templates/> </xsl:element> </xsl:template> read the whole answer by Michael Kay (XSL deity) http://www.stylusstudio.com/xsllist/200501/post00240.html where he outlines the much simpler xsl 2 solution |
![]() |
| Thread Tools | |
| Display Modes | |
| |