Advertisement
Guest User

Untitled

a guest
Apr 25th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. <?xml version="1.0" ?>
  2. <xsl:stylesheet version="1.0"
  3. xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  4. <xsl:output method="html" omit-xml-declaration="yes" />
  5. <xsl:param name="PatName" select="property[@name='name']"/>
  6.  
  7. <xsl:template match="object[@class='org.opensourcephysics.cabrillo.tracker.PointMass']">
  8. <xsl:value-of select="translate(property[@name='name'],' ','_')"/> = [ <xsl:apply-templates select="node()" />
  9. ]
  10.  
  11. </xsl:template>
  12.  
  13. <xsl:template match="object[@class='org.opensourcephysics.cabrillo.tracker.PointMass$FrameData']">
  14. [ <xsl:value-of select="property[@name='x']"/>, <xsl:value-of select="property[@name='y']"/> ];</xsl:template>
  15.  
  16. <xsl:template match="object[@class='org.opensourcephysics.cabrillo.tracker.TrackerPanel']">
  17. <xsl:apply-templates select="property[@name='tracks']"/>
  18. </xsl:template>
  19.  
  20. <!-- IdentityTransform -->
  21. <xsl:template match="/ | @* | node()">
  22. <xsl:apply-templates select="@* | node()" />
  23. </xsl:template>
  24.  
  25.  
  26. </xsl:stylesheet>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement