[Home] [By Thread] [By Date] [Recent Entries]
Charles, 1. There is not much difference in processing the XML to HTML in both of the cases you provide. You will probably need the company name and URL in global variables. <xsl:variable name="companyName" select='XYZ'/> <xsl:variable name="companyURL" select='www.xyz.com'/> Then in your template You need to process the string 'Worked for XYZ Inc.' such that you 1. get the substring before 'XYZ' 2. process the XYZ 3. get the substring after 'XYZ' <xsl:template match="experience">
<xsl:value-of select="substring-before(.,$companyName)"/>
<a href="{$companyURL}">
<xsl:value-of select="$companyName"/>
</a>
<xsl:value-of select="substring-after(.,$companyName)"/>
</xsl:template>2. You can simply put one in. <experience dates="1990 - 2000" company="Worked for XYZ Inc."> <xsl:template match="experience">
<xsl:value-of select="@dates"/>
<xsl:text> </xsl:text>
<xsl:value-of select="@company"/>
</xsl:template>-rick At 09:08 AM 5/7/03 +0100, you wrote: Hi
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|

Cart



