Subject: Re: [xsl] Chunking xml into single-topic docs From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Thu, 24 Feb 2005 12:42:08 -0500 |
<xsl:variable name="title"> <xsl:choose> <xsl:when test="contains($file_title,'_')"> <xsl:value-of select="escape-uri(substring-before($file_title,'_'),true())"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="escape-uri($file_title,true())"/> </xsl:otherwise> </xsl:choose> </xsl:variable>
<xsl:variable name="title2"> <xsl:choose> <xsl:when test="contains($title,' ')">
<xsl:value-of select="substring-before($title,' ')"/> <xsl:text>.xml</xsl:text> </xsl:when> <xsl:when test="contains($title,'/')">
<xsl:value-of select="substring-before($title,'/')"/> <xsl:text>.xml</xsl:text> </xsl:when> <xsl:otherwise> <xsl:value-of select="$title"/> <xsl:text>.xml</xsl:text> </xsl:otherwise> </xsl:choose> </xsl:variable>
I hope this helps, Wendell
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Chunking xml into single-, Michael Kay | Thread | Re: [xsl] Chunking xml into single-, Kessler, Marcy |
RE: [xsl] Chunking xml into single-, Michael Kay | Date | RE: [xsl] Using attributes and elem, Michael Kay |
Month |