samples/blub.svg
author Edouard Tisserant <edouard.tisserant@gmail.com>
Wed, 28 Apr 2021 23:40:51 +0200
changeset 78 0b05c2bce9e4
parent 0 76005e62091d
permissions -rw-r--r--
Fix expension of macros in pointers with default values.

For example :

in xsl decl widget_class(%name, *clsname="%nameWidget", match="widget[@type='%name']", mode="widget_class") alias template {
| class `text **clsname` extends Widget{
content;
| }
};

widget_class('Input');

gives now :

<xsl:template match="widget[@type='Input']" mode="widget_class">
<xsl:text>class </xsl:text>
<xsl:text>InputWidget</xsl:text>
<xsl:text> extends Widget{
</xsl:text>
<xsl:text>}
</xsl:text>
</xsl:template>

Without the fix, <xsl:text>InputWidget</xsl:text> would be <xsl:text>%nameWidget</xsl:text>
0
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
     1
<svg xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://www.w3.org/2000/svg" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:cc="http://web.resource.org/cc/" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dc="http://purl.org/dc/elements/1.1/" sodipodi:docname="XiIrritant.svg" sodipodi:version="0.32" height="177.523" width="155.932" id="svg1" inkscape:version="0.40" viewBox="-10 -10 178 178" sodipodi:docbase="/mnt/donnees/09-Mes_images/Travaux/Travaux vectoriel/pictogrammes/s&#233;cu SVG/produits chimiques">
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
     2
  <metadata>
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
     3
    <rdf:RDF>
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
     4
      <cc:Work rdf:about="">
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
     5
        <dc:title>Irritant</dc:title>
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
     6
        <dc:description>produit chimique</dc:description>
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
     7
        <dc:subject>
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
     8
          <rdf:Bag>
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
     9
            <rdf:li/>
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    10
            <rdf:li>symbol</rdf:li>
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    11
            <rdf:li>signs_and_symbols</rdf:li>
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    12
          </rdf:Bag>
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    13
        </dc:subject>
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    14
        <dc:publisher>
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    15
          <cc:Agent rdf:about="http://www.openclipart.org">
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    16
            <dc:title>yves GUILLOU</dc:title>
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    17
          </cc:Agent>
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    18
        </dc:publisher>
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    19
        <dc:creator>
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    20
          <cc:Agent>
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    21
            <dc:title>yves GUILLOU</dc:title>
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    22
          </cc:Agent>
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    23
        </dc:creator>
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    24
        <dc:rights>
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    25
          <cc:Agent>
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    26
            <dc:title>yves GUILLOU</dc:title>
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    27
          </cc:Agent>
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    28
        </dc:rights>
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    29
        <dc:date/>
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    30
        <dc:format>image/svg+xml</dc:format>
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    31
        <dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    32
        <cc:license rdf:resource="http://web.resource.org/cc/PublicDomain"/>
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    33
        <dc:language>en</dc:language>
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    34
      </cc:Work>
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    35
      <cc:License rdf:about="http://web.resource.org/cc/PublicDomain">
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    36
        <cc:permits rdf:resource="http://web.resource.org/cc/Reproduction"/>
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    37
        <cc:permits rdf:resource="http://web.resource.org/cc/Distribution"/>
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    38
        <cc:permits rdf:resource="http://web.resource.org/cc/DerivativeWorks"/>
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    39
      </cc:License>
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    40
    </rdf:RDF>
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    41
  </metadata>
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    42
  <sodipodi:namedview bordercolor="#666666" inkscape:window-x="200" inkscape:window-y="0" pagecolor="#ffffff" inkscape:zoom="6.6399849" inkscape:pageshadow="2" id="base" borderopacity="1.0" inkscape:current-layer="svg1" inkscape:cx="62.372805" inkscape:cy="34.864537" inkscape:window-width="1590" inkscape:pageopacity="0.0" inkscape:window-height="1121"/>
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    43
  <defs id="defs2">
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    44
    <marker refY="5" refX="0" markerUnits="strokeWidth" viewBox="0 0 10 10" orient="auto" markerWidth="4" id="ArrowEnd" markerHeight="3">
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    45
      <path d="M 0 0 L 10 5 L 0 10 z" id="path4"/>
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    46
    </marker>
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    47
    <marker refY="5" refX="10" markerUnits="strokeWidth" viewBox="0 0 10 10" orient="auto" markerWidth="4" id="ArrowStart" markerHeight="3">
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    48
      <path d="M 10 0 L 0 5 L 10 10 z" id="path6"/>
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    49
    </marker>
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    50
  </defs>
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    51
  <g id="g7">
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    52
    <g id="g8">
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    53
      <path style="stroke:none; fill:#000000" d="M 155.932 155.932L 155.932 0L 0 0L 0 155.932L 155.932 155.932z" id="path9"/>
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    54
      <path style="stroke:none; fill:#ff9900" d="M 150.83 150.83L 150.83 5.1011L 5.1011 5.1011L 5.1011 150.83L 150.83 150.83z" id="path10"/>
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    55
    </g>
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    56
    <g id="g11">
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    57
      <path style="stroke:none; fill:#000000" d="M 140.823 111.783L 44.3677 14.0771L 15.1084 44.1489L 111.564 141.854L 140.823 111.783z" id="path12"/>
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    58
      <path style="stroke:none; fill:#000000" d="M 111.783 15.1084L 14.0771 111.564L 44.1489 140.823L 141.855 44.3677L 111.783 15.1084z" id="path13"/>
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    59
    </g>
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    60
  </g>
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    61
</svg>