@epa-wg/custom-element 0.0.32 → 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 +5 -5
- package/bin/xslDtd2Ide.mjs +160 -160
- package/custom-element.d.ts +4 -0
- package/custom-element.js +119 -50
- package/demo/a.html +10 -3
- package/demo/{parameters.html → attributes.html} +71 -7
- package/demo/html-template.html +5 -4
- package/demo/s.xml +3859 -7
- package/demo/s.xslt +13 -48
- package/demo/s1.xml +3706 -0
- package/demo/ss.html +13 -4
- package/http-request.js +7 -0
- package/ide/web-types-dce.json +1 -1
- package/ide/web-types-xsl.json +1 -1
- package/index.html +1 -1
- package/package.json +1 -1
package/demo/s.xslt
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
1
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xhtml="http://www.w3.org/1999/xhtml"
|
|
3
2
|
xmlns:dce="urn:schemas-epa-wg:dce" xmlns:exsl="http://exslt.org/common" version="1.0"
|
|
4
3
|
exclude-result-prefixes="exsl">
|
|
@@ -14,54 +13,20 @@
|
|
|
14
13
|
<xsl:value-of select="."/>
|
|
15
14
|
</xsl:template>
|
|
16
15
|
<xsl:template mode="payload" match="attributes">
|
|
17
|
-
<xsl:param name="p1" select="/datadom/attributes/p1">default_P1</xsl:param>
|
|
18
|
-
<xsl:param name="p2" select="'always_p2'"/>
|
|
19
|
-
<xsl:param name="p3">
|
|
20
|
-
<xsl:choose>
|
|
21
|
-
<xsl:when test="string-length(//p3)>0 ">RRRR
|
|
22
|
-
<xsl:value-of select="count(//p3)"/>
|
|
23
|
-
+<xsl:value-of select="//p3 "/>=
|
|
24
|
-
</xsl:when>
|
|
25
|
-
<xsl:otherwise>OOO
|
|
26
|
-
<xsl:value-of select=" 'def_P3' "/>
|
|
27
|
-
</xsl:otherwise>
|
|
28
|
-
</xsl:choose>
|
|
29
|
-
</xsl:param>
|
|
30
16
|
<dce-root xmlns="http://www.w3.org/1999/xhtml" xmlns:xhtml="http://www.w3.org/1999/xhtml" data-dce-id="1">
|
|
31
|
-
<
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
<xsl:
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
</xsl:attribute>
|
|
45
|
-
<dce-text xmlns="" data-dce-id="2">
|
|
46
|
-
p1:
|
|
47
|
-
</dce-text>
|
|
48
|
-
<code xmlns="" data-testid="p1" data-dce-id="3">
|
|
49
|
-
<xsl:value-of select="$p1"/>
|
|
50
|
-
</code>
|
|
51
|
-
<br xmlns="" data-dce-id="4"/>
|
|
52
|
-
<dce-text xmlns="" data-dce-id="5">
|
|
53
|
-
p2:
|
|
54
|
-
</dce-text>
|
|
55
|
-
<code xmlns="" data-testid="p2" data-dce-id="6">
|
|
56
|
-
<xsl:value-of select="$p2"/>
|
|
57
|
-
</code>
|
|
58
|
-
<br xmlns="" data-dce-id="7"/>
|
|
59
|
-
<dce-text xmlns="" data-dce-id="8">
|
|
60
|
-
p3:
|
|
61
|
-
</dce-text>
|
|
62
|
-
<code xmlns="" data-testid="p3" data-dce-id="9">
|
|
63
|
-
<xsl:value-of select="$p3"/>
|
|
64
|
-
</code>
|
|
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>
|
|
65
30
|
</dce-root>
|
|
66
31
|
</xsl:template>
|
|
67
32
|
<xsl:template match="/">
|