|
Subject: Re: [xsl] Multiple Template Matchingm, Attributes & Complex XML From: Martin Honnen <Martin.Honnen@xxxxxx> Date: Fri, 25 Feb 2011 18:51:39 +0100 |
2. Is there a way to have another xml file as a lookup list for attributes like gender typeCode tc or state typeCode tc so that the one XSL is easier to manage?
<xsl:template match="foo">
<xsl:variable name="this" select="."/>
<xsl:for-each select="document('lookup.xml')">
<xsl:value-of select="key('k1', $this)/code"/>
</xsl:for-each>
</xsl:template>Martin Honnen http://msmvps.com/blogs/martin_honnen/
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] Multiple Template Matchin, Martin Honnen | Thread | Re: [xsl] Multiple Template Matchin, Brandon Ibach |
| Re: [xsl] Multiple Template Matchin, Martin Honnen | Date | Re: [xsl] Multiple Template Matchin, Brandon Ibach |
| Month |