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]

Excelon Stylus buggy


Perhaps this is not news, but I have been evaluating/using Excelon's 
"Stylus" XSL composer for the last few days, and ended up wasting a fair 
due to bugs.  Initially, I trusted [doh!] their transformation engine, and 
assumed that I had a problem with my XSL.  I have ran into several examples 
now where it doesn't do the right thing according to the spec.

Thanks very much, Steve and Mike, for your help in confirming that it is OK 
to apply templates within a parameter (which was actually one of the first 
few things I tried to use to pass arbitrary content to a template).  Now 
I've ditched stylus, Xalan processes my stylesheet just fine.

BTW, are there any performance/memory issues passing RTFs around like this?


To the FAQ maintainer (Dave?) - how about the following for the FAQ?  It 
may be fairly obvious, but I would have found it useful to confirm that you 
can do anything in a parameter like this.

----

Q. How do I include arbitrary content in a template?

A. Pass the result tree fragment for the output you wish to include as a 
parameter:

<xsl:template match="test1">
   <xsl:call-template name="bolditalic">
     <xsl:with-param name="content">
       <!-- example content below will be inserted-->
       <xsl:call-template name="foo"/>
       <xsl:value-of select="test2"/>
       <xsl:apply-templates/>
       foobarfoobar
       <!-- end of inserted stuff -->
     </xsl:with-param>
   </xsl:call-template>
</xsl:template>

<xsl:template name="bolditalic">
   <xsl:param name="content"/>
   <B>
     <I>
       <xsl:copy-of select="$content"/>
     </I>
   </B>
</xsl:template>



//----------------------------------------------------
// Iain Huxley
// President
// Mindspike Technologies
// http://mindspike.com
// Ph: (510) 339 7789
//----------------------------------------------------


 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]