|
Subject: [xsl] Split Strings with multiple spaces From: Alice Ju-Hsuan Wei <ajwei@xxxxxxxxxxx> Date: Wed, 14 Nov 2007 07:56:52 -0500 |
<do> <date>2007-11-14</date> <list>milk cheese vegetables beef</list> <limit_price>20</limit_price> <do>
<xsl:template name="do_list">
<xsl:variable name="item" select="list"/>
<xsl:variable name="tasks" select="substring-after($item, ' ')"/>
<xsl:choose>
<xsl:when test="contains($item,' '
<xsl:value-of select="id($item)"/>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="$item"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template> <ul>
<li>Cheddar Cheese</li>
<li>Chuck Steak</li>
<li>Brocololi, Beans, Carrots</li>
<li>Dean's Low Fat Milk 2%</li></ul>| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] XSL support of Bottom up , Owen Rees | Thread | Re: [xsl] Split Strings with multip, Wendell Piez |
| Re: [xsl] XSL support of Bottom up , Owen Rees | Date | [xsl] Spread a ul/li list in severa, Bernie |
| Month |