heading.en.yhtml2
author Edouard Tisserant <edouard.tisserant@gmail.com>
Wed, 28 Apr 2021 23:40:51 +0200
changeset 78 0b05c2bce9e4
parent 77 5b23278ed81f
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
decl a(href);
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
     2
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
     3
decl Code alias pre {
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
     4
    code
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
     5
        content;
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
     6
};
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
     7
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
     8
decl ne is a {
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
     9
    content;
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    10
    br;
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    11
};
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    12
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    13
div id=headline {
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    14
    p > YML – Why a Markup Language?!
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    15
    div class=small {
74
c3c5a089072a feature: include from *pointer
Volker Birk <vb@pep-project.org>
parents: 51
diff changeset
    16
        "YML 2.7.0 of Thu 08 Apr 2021  –  Copyleft 2007-2021, "
0
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    17
        a "http://blog.fdik.org", "Volker Birk";
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    18
        " – "
77
5b23278ed81f updating documentation
Volker Birk <vb@pep-project.org>
parents: 74
diff changeset
    19
        a "https://gitea.pep.foundation/fdik/yml2", "Download YML 2";
0
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    20
    }
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    21
}
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    22
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    23
div id=navigation {
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    24
    h1 a "index", "Introduction";
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    25
    ne "index#xml", "XML";
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    26
    ne "index#motivation", "Motivation";
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    27
    ne "index#howitworks", "How it works";
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    28
    ne "index#ylanguages", "Y Languages";
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    29
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    30
    h1 a "programming", "Using YML 2";
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    31
    ne "programming#wiki", "A Wiki like language";
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    32
    ne "programming#how", "How does that work?";
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    33
    ne "programming#details", "Details, please!";
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    34
    ne "programming#using", "Using it";
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    35
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    36
    h1 a "features", "Features";
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    37
    ne "features#text", "Text";
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    38
    ne "features#functioncalls", "Function Calls";
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    39
    ne "features#decl", "Declaring Functions";
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    40
    ne "features#quoting", "Quoting Operators";
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    41
    ne "features#including", "Including YML Files";
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    42
    ne "features#python", "Escaping into Python";
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    43
    ne "features#comments", "Comments";
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    44
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    45
    h1 a "yslt", "YSLT";
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    46
    ne "yslt#intro", "Introduction into YSLT";
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    47
    ne "yslt#hello", "Hello, World";
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    48
    ne "yslt#programming", "Programming in YSLT";
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    49
    ne "yslt#htmlgen", "Generating HTML out of a DSL";
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    50
    ne "yslt#codegen", "Generating Java code out of a DSL";
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    51
    ne "yslt#ddlgen", "Generating SQL DDL out of UML in XMI";
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    52
    ne "yslt#features", "YSLT Features";
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    53
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    54
    h1 a "toolchain", "Tool Chain";
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    55
    ne "toolchain#compiler", "YML compiler";
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    56
    ne "toolchain#processor", "YML/YSLT processor";
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    57
    ne "toolchain#recommended", "Recommended external tools";
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    58
    ne "http://www.auchdieserschwachsinnmussinsinternet.de/2009-03/#s1236859037", "Windows tool chain";
77
5b23278ed81f updating documentation
Volker Birk <vb@pep-project.org>
parents: 74
diff changeset
    59
    ne "https://gitea.pep.foundation/fdik/yml2", "Download YML 2";
0
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    60
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    61
    h1 "Misc";
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    62
    ne "gpl-2.0.txt", "License for YML";
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    63
    ne "http://www.pibit.ch/", "Commercial support for YML";
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    64
    ne "http://fdik.org/pyPEG", "YML is using pyPEG";
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    65
}