GeoGebra Support?

31 views
Skip to first unread message

Justin Dunmyre

unread,
Sep 9, 2017, 5:46:07 PM9/9/17
to MathBook XML Support
In the sample-article.xml, it suggests that mathbook-xml might enjoy expanded Geogebra support if it's requested.  I use geogebra a lot, so I put a weak hack into my .xsl file.  This is likely to be super sloppy, I put it in my second day of using mathbook-xml, and I still don't totally know what I'm doing : )  I'm particularly interested in the notion of not relying on geogebra-tube!

Thanks!

Justin

Code from .xsl file:


<xsl:template match="ggb">
   
<xsl:param name="width" select="@width"/>
   
<xsl:param name="height" select="@height" />
   
<xsl:param name="title"  />


   
<xsl:variable name="int-id">
       
<xsl:apply-templates select="." mode="internal-id" />
   
</xsl:variable>
   
<xsl:variable name="source-url" select="@source-url" />




 
<iframe id="{$int-id}"
           
title="{$title}"
           
width="{$width}"
           
height="{$height}"
           
style="border:0px"
 
scrolling="no"
           
src="{$source-url}"/>
</xsl:template>


Example usage in .xml file:



Reply all
Reply to author
Forward
0 new messages