@epa-wg/custom-element 0.0.33 → 0.0.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.idea/copilot.data.migration.agent.xml +6 -0
- package/README.md +4 -4
- package/bin/xslDtd2Ide.mjs +160 -160
- package/custom-element.js +31 -10
- package/demo/a.html +10 -3
- package/demo/html-template.html +5 -4
- package/demo/s.xml +3856 -67
- package/demo/s.xslt +13 -72
- package/demo/s1.xml +3706 -0
- package/http-request.js +7 -0
- package/ide/web-types-dce.json +1 -1
- package/ide/web-types-xsl.json +1 -1
- package/package.json +1 -1
package/demo/s.xslt
CHANGED
|
@@ -13,79 +13,20 @@
|
|
|
13
13
|
<xsl:value-of select="."/>
|
|
14
14
|
</xsl:template>
|
|
15
15
|
<xsl:template mode="payload" match="attributes">
|
|
16
|
-
<xsl:param name="v">
|
|
17
|
-
<xsl:choose>
|
|
18
|
-
<xsl:when test="//s[//s/event] ">
|
|
19
|
-
<xsl:value-of select="//s[//s/event] "/>
|
|
20
|
-
</xsl:when>
|
|
21
|
-
<xsl:when test=" //attributes/@v ">
|
|
22
|
-
<xsl:value-of select=" //attributes/@v "/>
|
|
23
|
-
</xsl:when>
|
|
24
|
-
<xsl:otherwise>
|
|
25
|
-
<xsl:value-of select=" 'def' "/>
|
|
26
|
-
</xsl:otherwise>
|
|
27
|
-
</xsl:choose>
|
|
28
|
-
</xsl:param>
|
|
29
16
|
<dce-root xmlns="http://www.w3.org/1999/xhtml" xmlns:xhtml="http://www.w3.org/1999/xhtml" data-dce-id="1">
|
|
30
|
-
<
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
<
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
</xsl:choose>
|
|
44
|
-
</xsl:attribute>
|
|
45
|
-
<dce-text xmlns="" data-dce-id="2">
|
|
46
|
-
|
|
47
|
-
//attributes/v='<xsl:value-of select="//attributes/v"/>'
|
|
48
|
-
</dce-text>
|
|
49
|
-
<br xmlns="" data-dce-id="3"/>
|
|
50
|
-
<dce-text xmlns="" data-dce-id="4">
|
|
51
|
-
//attributes/@v='<xsl:value-of select="//attributes/@v"/>'
|
|
52
|
-
</dce-text>
|
|
53
|
-
<br xmlns="" data-dce-id="5"/>
|
|
54
|
-
<dce-text xmlns="" data-dce-id="6">
|
|
55
|
-
$v='<xsl:value-of select="$v"/>'
|
|
56
|
-
</dce-text>
|
|
57
|
-
<br xmlns="" data-dce-id="7"/>
|
|
58
|
-
<dce-text xmlns="" data-dce-id="8">
|
|
59
|
-
//s='<xsl:value-of select="//s"/>'
|
|
60
|
-
</dce-text>
|
|
61
|
-
<br xmlns="" data-dce-id="9"/>
|
|
62
|
-
<dce-text xmlns="" data-dce-id="10">
|
|
63
|
-
A='<xsl:value-of select="//s[//s/event] | //attributes/v[not(//s/event)]"/>'
|
|
64
|
-
</dce-text>
|
|
65
|
-
<br xmlns="" data-dce-id="11"/>
|
|
66
|
-
<dce-text xmlns="" data-dce-id="12">
|
|
67
|
-
has-input =<xsl:value-of select=" $has-input "/>
|
|
68
|
-
</dce-text>
|
|
69
|
-
<br xmlns="" data-dce-id="13"/>
|
|
70
|
-
<xsl:variable xmlns:xsl="http://www.w3.org/1999/XSL/Transform" name="in-value">
|
|
71
|
-
<xsl:choose>
|
|
72
|
-
<xsl:when test="//s/event">
|
|
73
|
-
<xsl:value-of select="//s">
|
|
74
|
-
</xsl:value-of>
|
|
75
|
-
</xsl:when>
|
|
76
|
-
<xsl:when test="//attributes/@v">
|
|
77
|
-
<xsl:value-of select="//attributes/@v">
|
|
78
|
-
</xsl:value-of>
|
|
79
|
-
</xsl:when>
|
|
80
|
-
<xsl:otherwise>def</xsl:otherwise>
|
|
81
|
-
</xsl:choose>
|
|
82
|
-
</xsl:variable>
|
|
83
|
-
<xsl:variable xmlns:xsl="http://www.w3.org/1999/XSL/Transform" name="xx"
|
|
84
|
-
select="//s[//s/event] ?? //attributes/@v ?? 'def' "/>
|
|
85
|
-
<input xmlns="" slice="s" slice-event="input" value="{$in-value}" data-dce-id="14"/>
|
|
86
|
-
<dce-text xmlns="" data-dce-id="15">$in-value:<xsl:value-of select="$in-value"/> | $xx:<xsl:value-of
|
|
87
|
-
select="$xx"/>
|
|
88
|
-
</dce-text>
|
|
17
|
+
<section xmlns="" data-dce-id="2">
|
|
18
|
+
<xsl:variable xmlns:xsl="http://www.w3.org/1999/XSL/Transform" name="cem-theme"
|
|
19
|
+
select="document('./theme-data.xhtml')//*[@id='theme']/*"/>
|
|
20
|
+
<dce-text data-dce-id="3">
|
|
21
|
+
count=
|
|
22
|
+
<xsl:value-of select="count($cem-theme)"/>
|
|
23
|
+
</dce-text>
|
|
24
|
+
<xsl:for-each xmlns:xsl="http://www.w3.org/1999/XSL/Transform" select="$cem-theme">
|
|
25
|
+
<xsl:value-of select="@id"/>
|
|
26
|
+
<xsl:value-of select="."/>
|
|
27
|
+
</xsl:for-each>
|
|
28
|
+
<hr data-dce-id="4"/>
|
|
29
|
+
</section>
|
|
89
30
|
</dce-root>
|
|
90
31
|
</xsl:template>
|
|
91
32
|
<xsl:template match="/">
|