cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Merrilees" <david.merril...@fenc.org.uk>
Subject RE: XSP kills transformation
Date Tue, 23 Sep 2003 15:40:51 GMT
>From the site map:

	<map:match pattern="LPTitle.jpeg">
		<map:generate type="file" src="lessonplan.xsp" />
		<map:transform type="xslt" src="lessonplantitle.xsl" />
		<map:serialize type="svg2jpeg" />
	</map:match>

lessonplantitle.xsl:

	<?xml version="1.0"?>
	<xsl:stylesheet version="1.0" xmlns="http://www.w3.org/2000/svg" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

		<xsl:template match="/">
		
			<svg viewBox="0 0 260 75" width="260px" height="75px">
				<title><xsl:value-of select="/" /></title>
				<g transform="translate(0,65)">
					<text y="0" x="0" font-size="40" fill="black">
						<tspan font-weight="bold">
							<xsl:value-of select="lessonplan/topic/@title" />: <xsl:value-of select="lessonplan/topic/topicstring"
/>
						</tspan>
					</text>
				</g>
			</svg>
		</xsl:template>

	</xsl:stylesheet>

-----Original Message-----
From: Richard R. McKinley [mailto:mckinlr@sosstaffing.com]
Sent: 23 September 2003 16:07
To: users@cocoon.apache.org
Subject: RE: XSP kills transformation


Please, show off the block that defines this resource in your sitemap.

-----Original Message-----
From: David Merrilees [mailto:david.merrilees@fenc.org.uk] 
Sent: Tuesday, September 23, 2003 8:46 AM
To: users@cocoon.apache.org
Subject: XSP kills transformation

Hi, my name is David, i'm from the UK, i'm developing transformations
within Cocoon for learning resources.

I have a problem when serialising SVG to JPEG when my content is XSP but
It works fine when it's XML. Any bright ideas?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message