Hi!we have worked on the subject of generating diagrams from XML in a university project, but I don't think the stuff is mature enough to be published here.
We used the following approach:Define a very general language to represents the diagrams (we called it DML) and use XSLT to generate SVGs from that language. If this is interesting for you I might get the permission to share the stuff with you.
Regards, Benni Am 26.07.2005 um 18:55 schrieb Jarry Liu:
Hi, I am very interested with this topic. Can you give me more information about this SVG and Fragment Extractor? I use JEuclid to tansform MathML and present it with SVG. But in the output, I want add other html stuff in it. How can I do it? Here is part of the code I used: <map:generate src="temp1.mml"/> <map:transform type="mml2svg"/> <map:serialize type="svgxml"/> Thanks. Jarry On 4/29/05, Dustin N. Jenkins <[EMAIL PROTECTED]> wrote:In case anyone is interested, I found the Fragment Extractor Generator/Transformer to work just fine for what I needed. Currently, the default namespace is "http://www.w3.org/2000/svg", so below, where I have the <svg> tag, I can just specify <svg xmlns="http://www.w3.org/2000/svg"> <!-- BUILD DYNAMIC XML TO REPRESENT SVG --> </svg> and specify in my sitemap the src for the generator within my SVG pipeline. Works great. - Dustin Dustin N. Jenkins wrote:Hello and thanks for reading this. I'd like to create a dynamically generated SVG bar graph for a scheduling system. The resulting table will display the weekdays along the top, and bars beneath them indicating for what days of the week a schedule will cover. I've been painstakingly doing it with HTML tables as it seems like for Cocoon to do it, it needs to pass through a pipeline. I noticed that there is an xmlns:svg="http://www.w3.org/2000/svg" in an example that requires a client side plugin. This will also be inside a form, but that shouldn't matter. Kind of like the following: XML: <page...> <form-template...> <list-table> <header>S</header> <header>M</header> <header>T</header> <header>W</header> <header>Th</header> <header>F</header> <header>Sa</header> <c:forEach select="#{scheduleList}"> <schedule> <svg> <!-- BUILD DYNAMIC XML TO REPRESENT SVG --> </svg> </schedule> </c:forEach> </list-table> </form-template> </page> XSL: <xsl:template match="svg"> <!-- Do the SVG STUFF whatever that may be. --> </xsl:template> Has anyone done something similar to this with SVG and Cocoon? Many thanks! Dustin-- Dustin N. Jenkins Application Developer Invoq Systems 216 - 852 Fort St. Victoria, British Columbia 250.383.0311 --------------------------------------------------------------------- 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]
PGP.sig
Description: Signierter Teil der Nachricht
