Get XML node description from another xml file using XSLT

xZim

New Member
I want help in getting a value from one xml into another using xsl, i have the following xml:\[code\]<metadata> <idinfo>Node Text</idinfo></metadata>\[/code\]and i have a general xsl to display the nodes like:\[code\]<?xml version="1.0" encoding="utf-8"?><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:dmd="http://www.digitalmeasures.com/schema/data-metadata" xmlns:dm="http://www.digitalmeasures.com/schema/data"> <xsl:output method="html" encoding="utf-8"/> <xsl:template match="*[(child::*)]"> <fieldset> <legend><xsl:value-of select="local-name()"/></legend> <xsl:apply-templates/> </fieldset> </xsl:template> <xsl:template match="*[not(child::*)]"> <strong><xsl:value-of select="local-name()"/></strong> <i><xsl:apply-templates/></i> </xsl:template></xsl:stylesheet>\[/code\]And the output will be:\[code\]<fieldset><legend>metadata</legend> <strong>idinfo</strong><i>Node Text</i></fieldset>\[/code\]Now what I want is replacing node names by another xml, so i want to replace idinfo by Identification InformationThe xml which I ant to use is as follows:\[code\]<?xml version="1.0" encoding="UTF-8"?><labels><element name="idinfo"><label>Identification Information</label></element></label>\[/code\]I hope that my question is clear.
 
Back
Top