Re: DIA export code

david wrote:

I'm a beginner in DIA, and I'm trying to make my own xsl to convert a statechart diagram to a nice xml file.
I've read and pick some lines in others xsl file (like dia-uml.xsl) to have an exemple but I have a problem.

This is my an extract of my xsl file :
<xsl:stylesheet xmlns:xsl=""
  <xsl:output method="xml" indent="yes"/>

  <xsl:template match="/">
    <xsl:element name="dia-uml">
      <xsl:apply-templates select="
dia:object[ type='UML - State']"/>
  <xsl:template match="dia:object[ type='UML - State']">
    <xsl:element name="state">

My template dia:object[ type='UML - State'] doesn't work and I'don't know why. I've tried different things ( " or ' ....) but without changes.
Not sure what you want to do, but my guess you should use <xsl:value-of .../> somewhere. There is a nice tutrial about XSL on w3schools. For an example of using XSL on DIA files you can use:
(sorry about the commercials - I have to change this host :-/)
Note that that readme is in the package.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]