cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Newland" <cnewl...@nortelnetworks.com>
Subject apply <?cocoon-process type="xsp"?> to an XSL?
Date Mon, 05 Jun 2000 15:12:12 GMT
Hi, 

Is it possible to write <xsp:logic> tags into an XSL file and add
<?cocoon-process type="xsp"?> to the top of the file to allow conditional
sections in XSL stylesheets.

I would like to be able to do something like:


<?cocoon-process type="xsp"?>

<xsl:template match="effect">

	<xsp:logic>
		if (<xsl:value-of select="@effect"/>.equals("bold")) {
			<b><xsl:apply-templates/></b>
		}
		else {
			<i><xsl:apply-templates/></i>
		}	
	</xsp:logic>

</xsl:template>

I would imagine that the XSL would undergo an XSP processing step to produce
the completed XSL and this would then be applied to the XML document using
an XSLT processing step.

Is this within the realms of possibility?

Thanks,

Chris

--
Chris Newland 
Software Research Engineer 
Advanced IP Services and Management 
Nortel Networks, London Road, Harlow, Essex, CM17 9NA. 
Tel:   +44(0)1279 405165 
Fax:   +44(0)1279 402047 
Email: cnewland@nortelnetworks.com
"This message may contain information proprietary to Nortel Networks 
so any unauthorised disclosure, copying or distribution of its 
contents is strictly prohibited." 
------------------------------------------------------------
Company name: Nortel Networks plc
Company number: 2515751
Company's registered office address: Maidenhead Office Park, 
Westacott Way, Maidenhead, Berkshire SL6 3QH.
------------------------------------------------------------


Mime
View raw message