Re: Help with using macros in XSL

Subject: Re: Help with using macros in XSL
From: Duane Nickull <webmaster@xxxxxxxxxxxxxxxxx>
Date: Mon, 20 Sep 1999 12:14:53 -0700
We have some dynamically generated XML/XSL/CSS E-commerce pages and
other examples on our corporate site:

http://www.xmlglobal.com/xmldemo.html

I hope this helps

Duane Nickull
President
(604) 717-1100 #108

sotiris@xxxxxxxxxx wrote:
> 
> Hi
> 
> I am new to XSL and I am trying to write a stylesheet to use macros.
> My only guide is the W3C recommendation for XSL v1.0.
> 
> Could anyone send me simple examples of XSL using macros
> or point me to sites that may have such examples.
> 
> The example I include below causes MS XSL processor to crash
> and I don't know why.
> 
> <xsl:stylesheet
>   xmlns:xsl="http://www.w3.org/TR/WD-xsl";>
>   <xsl:macro name="SSECT-Style">
>      <xsl:text>blah</xsl:text>
>      <xsl:contents/>
>   </xsl:macro>
>   <xsl:template match="/">
>   </xsl:template>
>   <xsl:template match="SSECT">
>     <HTML>
>     <HEAD>
>        <TITLE>Node Contents</TITLE>
>     </HEAD>
>     <BODY>
>      <xsl:invoke macro="SSECT-Style"/>
>      <xsl:value-of select="text()"/>
>     </BODY>
>     </HTML>
>   </xsl:template>
> </xsl:stylesheet>
> 
> Can anyone tell me why this is happening?
> 
> Thanks
> Sotiris
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

-- 
/**************************************************\
| http://www.xmlglobal.com  /* Corporate site */    |
| http://www.goxml.com     /* XML Search engine */  |
| http://www.cartnetwork.com /* XML E-commerce */   |
|   "Really Cool XML Solutions - available today!"  |
\**************************************************/


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


Current Thread