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

xslt component

Subject: xslt component
From: "Ai, Larry" <lai@xxxxxxx>
Date: Mon, 23 Jun 2003 13:51:04 -0400
xsl component
Greeting,

     I want to generate xsl-fo tags dynamically by calling java methods from xsl templates.

     a) main xsl file:

            <xsl:import href="getsvg.xsl"/>
             ......
            <xsl:template match="...">
              ..
              <fo:block>
                 <fo:instream-foreign-object>
                    <xsl:call-template name="getsvg">
                         <xsl:with-param name="data" select="@b64Image"/>
                    </xsl:call-template>
                </fo:instream-foreign-object>
              </fo:block>

    b) the getsvg.xsl

            <xsl:template name="getsvg">
                <xsl:param name="data"/>
                <xsl:value-of select="string(convert:getSVG($data))"/>
             </xsl:template>

    c> the getSVG method returns a string of svg tags, e.g.
         <svg xmlns="http://www.w3.org/2000/svg" height="200" width="100" ><g><circle cx="25" cy="25" r="20" fill="red"/></g></svg>

     However, this approach does not work and I am not sure what went wrong!

     Any help will be appreciated!

Larry

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


Current Thread
  • xslt component
    • Ai, Larry - Mon, 23 Jun 2003 13:51:56 -0400 (EDT) <=
      • <Possible follow-ups>
      • Ai, Larry - Mon, 23 Jun 2003 15:09:32 -0400 (EDT)
      • Ai, Larry - Mon, 23 Jun 2003 16:22:25 -0400 (EDT)

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.