Lynn
发贴: 12
积分: 0
|
于 2005-03-13 16:42
Jove,thanks very much for your response,
but node like 'id','age','score' in document B should not be hard-coded,they should get from item/property/name.
<xsl:template match="head/item"> <record> <id>id should not be hard-coded here,should get from item/property/name>
<xsl:value-of select="property[name='id']/value"/> </id> <age> <xsl:value-of select="property[name='age']/value"/> </age> <score> <xsl:value-of select="property[name='score']/value"/> </score> </record> </xsl:template>
|