This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: <xsl:copy-of>


> I would like to replace this with:
> 
> 			<xsl:choose>
> 				<xsl:when condition>
> 					do something...
> 				</xsl:when>
> 				<xsl:copy-of select="$paste"/>
> 			</xsl:choose>
> 					
> 		where $paste is retrieved from:
> 			<xsl:variable name="paste">
> 				<xsl:otherwise>
> 					print something
> 				</xsl:otherwise>
> 			</xsl:variable>
> 
> The only reason I want to do this, is to condense my stylesheet.

Well, your syntax is invalid, and I for one can't guess at what you think it
would mean if it were allowed, so it's difficult to suggest how you should
write your code correctly.

Mike Kay 

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]