<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="text" encoding="UTF-8"/>
<xsl:template match="/">
<xsl:text>digraph {
  node [shape=record]
 
  </xsl:text>
 
<xsl:for-each select="hml/ard/dep">
  <xsl:value-of select="@independent"/>
  <xsl:text> [label="</xsl:text>
    <xsl:for-each select="/hml/property_set/property[@id=current()/@independent]">
      <xsl:for-each select="attref">
        <xsl:for-each select="/hml/attribute_set/att[@id=current()/@ref]"><xsl:value-of select="@name"/></xsl:for-each>
      </xsl:for-each>
    </xsl:for-each>
  <xsl:text>"];
  </xsl:text>
 
  <xsl:value-of select="@dependent"/>
  <xsl:text> [label="</xsl:text>
    <xsl:for-each select="/hml/property_set/property[@id=current()/@dependent]">
      <xsl:for-each select="attref">
        <xsl:for-each select="/hml/attribute_set/att[@id=current()/@ref]"><xsl:value-of select="@name"/></xsl:for-each>
      </xsl:for-each>
    </xsl:for-each>
  <xsl:text>"];
  </xsl:text>
 
 
</xsl:for-each>
 
<xsl:text>
  </xsl:text>
 
    <xsl:for-each select="/hml/ard/dep"><xsl:value-of select="@independent"/><xsl:text> -> </xsl:text><xsl:value-of select="@dependent"/>
    <xsl:text>;
  </xsl:text>
</xsl:for-each>
 
<xsl:text>
}
</xsl:text>
</xsl:template>
</xsl:stylesheet>
pl/miw/miw08_ard_xml/ardml_ard_dot_xsl.txt · ostatnio zmienione: 2017/07/17 08:08 (edycja zewnętrzna)
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0