@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/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
- <xsl:attribute name="p1">default_P1</xsl:attribute>
32
- <xsl:attribute name="p2">
33
- <xsl:value-of select="'always_p2'"/>
34
- </xsl:attribute>
35
- <xsl:attribute name="p3">
36
- <xsl:choose>
37
- <xsl:when test="//p3 ">
38
- <xsl:value-of select="//p3 "/>
39
- </xsl:when>
40
- <xsl:otherwise>
41
- <xsl:value-of select=" 'def_P3' "/>
42
- </xsl:otherwise>
43
- </xsl:choose>
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="/">