32 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <?xml version="1.0"?>
 | |
| <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
 | |
|                 xmlns:ns0="http://www.demo.com/author" 
 | |
|                 version="1.0">
 | |
|     
 | |
|     <xsl:param name="id"/>
 | |
|     <xsl:param name="firstname"/>
 | |
|     <xsl:param name="secondname"/>
 | |
|     <xsl:param name="date-of-birth"/>
 | |
|     <xsl:param name="date-of-death"/>
 | |
|     <xsl:param name="age"/>
 | |
| 
 | |
| 
 | |
|     <xsl:template match="@*|node()">
 | |
|         <xsl:copy>
 | |
|             <xsl:apply-templates select="@*|node()"/>
 | |
|         </xsl:copy>
 | |
|     </xsl:template>
 | |
| 
 | |
| 
 | |
|     <xsl:template match="ns0:author[@id=$id]">
 | |
|         <ns0:author id="979">
 | |
|             <ns0:firstName><xsl:value-of select="$firstname"/></ns0:firstName>
 | |
|             <ns0:lastName><xsl:value-of select="$secondname"/></ns0:lastName>
 | |
|             <ns0:dateOfBirth><xsl:value-of select="$date-of-birth"/></ns0:dateOfBirth>
 | |
|             <ns0:dateOfDeath><xsl:value-of select="$date-of-death"/></ns0:dateOfDeath>
 | |
|             <ns0:age><xsl:value-of select="$age"/></ns0:age>
 | |
|         </ns0:author>
 | |
|     </xsl:template>
 | |
| 
 | |
| </xsl:stylesheet>
 | 
