Here's Another.xsl --- <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="/"> <xsl:apply-templates/> </xsl:template> <xsl:template match="//[EMAIL PROTECTED]'myRect']"> <xsl:copy> <xsl:apply-templates select="@*|node()"/> <rect x="0" y="0" width="20" height="20" fill="blue"/> </xsl:copy> </xsl:template> <xsl:template match="@*|node()"> <xsl:copy> <xsl:apply-templates select="@*|node()"/> </xsl:copy> </xsl:template> </xsl:stylesheet> ---
And here's "rect.svg" --- <svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"> <g id="myRect"> <rect width="165" height="126" fill="green"/> </g> </svg> --- > -----Original Message----- > From: Jason Johnston [mailto:[EMAIL PROTECTED] > Sent: Friday, January 06, 2006 1:24 PM > To: [email protected] > Subject: Re: Chaining transforms in SourceWritingTransformer? > > Lincoln wrote: > > Can I chain another transform to my SourceWritingTransformer sitemap > > pipeline? > > Yes, you can add as many transformers as you like in any order. This is > the whole idea behind pipelines! :-) > > > I imagine it would look like this. But the resulting png is not effected > by > > "another.xsl". > > Without knowing what is in another.xsl I can't help much. But you > should be able to do this. > > To help debugging, you can temporarily remove the write-source transform > stage to see what XML it is getting before and after you add another.xsl > in the mix, so you can verify that another.xsl is working properly. > > > --- > > <map:pipeline> > > <map:match pattern="write/**"> > > <map:generate type="request"/> > > <map:transform src="request2doc.xsl"/> > > <map:transform src="doc2write.xsl"/> > > <map:transform type="xinclude"/> > > > > <!--Added transform-> > > <map:transform src="another.xsl"/> > > > > <map:transform type="write-source"> > > <map:parameter name="serializer" value="svg2png"/> > > </map:transform> > > <map:serialize type="xml"/> > > </map:match> > > </map:pipeline> > > --- > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
