[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Help with using macros in XSL

Subject: RE: Help with using macros in XSL
From: Ben Robb <Ben@xxxxxxxxxx>
Date: Fri, 17 Sep 1999 18:18:20 +0100
xsl macro
As far as I know, <xsl:macro> is not a recognised xsl command.

Apart from that, you will need the following line inserting within the
<xsl:template match="/"> tag:

<xsl:apply-templates />


As for resources, if you are using the MS XML parser, you should look first
at:

http://msdn.microsoft.com/xml

and browse to the reference pages (#3 on the left-hand list, from memory).

There is also a good example list at:

http://zvon.vscht.cz/HTMLonly/XSLTutorial/Books/Book1/index.html

Rgs,

Ben Robb
cScape


> -----Original Message-----
> From: sotiris@xxxxxxxxxx [mailto:sotiris@xxxxxxxxxx]
> Sent: 17 September 1999 16:03
> To: xsl-list@xxxxxxxxxxxxxxxx
> Subject: Help with using macros in XSL
> 
> 
> 
> 
> 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
> 


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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.