Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" ?>
- <xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
- <xsl:output method="html" omit-xml-declaration="yes" />
- <xsl:param name="PatName" select="property[@name='name']"/>
- <xsl:template match="object[@class='org.opensourcephysics.cabrillo.tracker.PointMass']">
- <xsl:value-of select="translate(property[@name='name'],' ','_')"/> = [ <xsl:apply-templates select="node()" />
- ]
- </xsl:template>
- <xsl:template match="object[@class='org.opensourcephysics.cabrillo.tracker.PointMass$FrameData']">
- [ <xsl:value-of select="property[@name='x']"/>, <xsl:value-of select="property[@name='y']"/> ];</xsl:template>
- <xsl:template match="object[@class='org.opensourcephysics.cabrillo.tracker.TrackerPanel']">
- <xsl:apply-templates select="property[@name='tracks']"/>
- </xsl:template>
- <!-- IdentityTransform -->
- <xsl:template match="/ | @* | node()">
- <xsl:apply-templates select="@* | node()" />
- </xsl:template>
- </xsl:stylesheet>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement