Skip to content

Commit 3266224

Browse files
committed
#0000 Project: Finalization of version 1.3.0
1 parent 9752079 commit 3266224

File tree

14 files changed

+289
-169
lines changed

14 files changed

+289
-169
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Street, Fifth Floor, Boston, MA 02110-1301, USA.
5959

6060

6161
# Downloads
62-
[1.2.0 Tutorial](https://github.com/seanox/aspect-js-tutorial/archive/1.2.0.zip)
62+
[1.3.0 Tutorial](https://github.com/seanox/aspect-js-tutorial/archive/1.3.0.zip)
6363

6464

6565
# Changes (Change Log)

Step_02 Integration of Seanox aspect-js/assets/aspect-js.js

Lines changed: 24 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@
2424
* ----
2525
* General extension of the JavaScript API.
2626
*
27-
* Extension 1.1.0x 20200106
27+
* Extension 1.1.1 20200106
2828
* Copyright (C) 2020 Seanox Software Solutions
2929
* Alle Rechte vorbehalten.
3030
*
3131
* @author Seanox Software Solutions
32-
* @version 1.1.0x20200106
32+
* @version 1.1.1 20200106
3333
*/
3434
if (typeof Namespace === "undefined") {
3535

@@ -445,12 +445,12 @@ if (window.location.pathcontext === undefined) {
445445
* The data is queried with XPath, the result can be concatenated and
446446
* aggregated and the result can be transformed with XSLT.
447447
*
448-
* DataSource 1.2x.0x 20200131
448+
* DataSource 1.3.0 20200201
449449
* Copyright (C) 2020 Seanox Software Solutions
450450
* Alle Rechte vorbehalten.
451451
*
452452
* @author Seanox Software Solutions
453-
* @version 1.2x.0x 20200131
453+
* @version 1.3.0 20200201
454454
*/
455455
if (typeof DataSource === "undefined") {
456456

@@ -642,7 +642,7 @@ if (typeof DataSource === "undefined") {
642642
//Workaround for some browsers, e.g. MS Edge, if they have problems with
643643
//!DOCTYPE + !ENTITY. Therefore the document is copied so that the
644644
//DOCTYPE declaration is omitted.
645-
var result = processor.transformToFragment(xml.clone(), document);
645+
var result = processor.transformToDocument(xml);
646646
var nodes = result.querySelectorAll(escape ? "*" : "*[escape]");
647647
nodes.forEach((node) => {
648648
if (escape || (node.getAttribute("escape") || "on").match(/^yes|on|true|1$/i)) {
@@ -665,7 +665,17 @@ if (typeof DataSource === "undefined") {
665665
node.setAttribute("type", "composite/javascript");
666666
});
667667

668-
return result;
668+
var nodes = result.childNodes;
669+
if (result.body)
670+
nodes = result.body.childNodes;
671+
else if (result.firstChild
672+
&& result.firstChild.nodeName.match(/^transformiix\b/i))
673+
nodes = result.firstChild.childNodes;
674+
var fragment = document.createDocumentFragment();
675+
nodes = Array.from(nodes);
676+
for (var loop = 0; loop < nodes.length; loop++)
677+
fragment.appendChild(nodes[loop]);
678+
return fragment;
669679
};
670680

671681
/**
@@ -828,12 +838,12 @@ if (typeof DataSource === "undefined") {
828838
*
829839
* <h1 output="{{Messages['contact.title']}}"/>
830840
*
831-
* Messages 1.2.0x 20200106
841+
* Messages 1.2.1 20200106
832842
* Copyright (C) 2020 Seanox Software Solutions
833843
* Alle Rechte vorbehalten.
834844
*
835845
* @author Seanox Software Solutions
836-
* @version 1.2.0x 20200106
846+
* @version 1.2.1 20200106
837847
*/
838848
if (typeof Messages === "undefined") {
839849

@@ -974,12 +984,12 @@ if (typeof Messages === "undefined") {
974984
* Thus virtual paths, object structure in JavaScript (namespace) and the
975985
* nesting of the DOM must match.
976986
*
977-
* Composite 1.2x.0x 20200127
987+
* Composite 1.3.0 20200127
978988
* Copyright (C) 2020 Seanox Software Solutions
979989
* Alle Rechte vorbehalten.
980990
*
981991
* @author Seanox Software Solutions
982-
* @version 1.2x.0x 20200127
992+
* @version 1.3.0 20200127
983993
*/
984994
if (typeof Composite === "undefined") {
985995

@@ -4347,12 +4357,12 @@ if (typeof Expression === "undefined") {
43474357
* is taken over by the Composite API in this implementation. SiteMap is an
43484358
* extension and is based on the Composite API.
43494359
*
4350-
* MVC 1.1x.0x 20200122
4360+
* MVC 1.2.0 20200122
43514361
* Copyright (C) 2020 Seanox Software Solutions
43524362
* Alle Rechte vorbehalten.
43534363
*
43544364
* @author Seanox Software Solutions
4355-
* @version 1.1x.0x 20200122
4365+
* @version 1.2.0 20200122
43564366
*/
43574367
if (typeof Path === "undefined") {
43584368

@@ -5351,12 +5361,12 @@ if (typeof SiteMap === "undefined") {
53515361
* assertion was not true, a error is thrown -- see as an example the
53525362
* implementation here.
53535363
*
5354-
* Test 1.1.0x 20200106
5364+
* Test 1.1.1 20200106
53555365
* Copyright (C) 2020 Seanox Software Solutions
53565366
* Alle Rechte vorbehalten.
53575367
*
53585368
* @author Seanox Software Solutions
5359-
* @version 1.1.0x 20200106
5369+
* @version 1.1.1 20200106
53605370
*/
53615371
if (typeof Test === "undefined") {
53625372

Step_03 Prototype - Splitting into components/assets/aspect-js.js

Lines changed: 24 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@
2424
* ----
2525
* General extension of the JavaScript API.
2626
*
27-
* Extension 1.1.0x 20200106
27+
* Extension 1.1.1 20200106
2828
* Copyright (C) 2020 Seanox Software Solutions
2929
* Alle Rechte vorbehalten.
3030
*
3131
* @author Seanox Software Solutions
32-
* @version 1.1.0x20200106
32+
* @version 1.1.1 20200106
3333
*/
3434
if (typeof Namespace === "undefined") {
3535

@@ -445,12 +445,12 @@ if (window.location.pathcontext === undefined) {
445445
* The data is queried with XPath, the result can be concatenated and
446446
* aggregated and the result can be transformed with XSLT.
447447
*
448-
* DataSource 1.2x.0x 20200131
448+
* DataSource 1.3.0 20200201
449449
* Copyright (C) 2020 Seanox Software Solutions
450450
* Alle Rechte vorbehalten.
451451
*
452452
* @author Seanox Software Solutions
453-
* @version 1.2x.0x 20200131
453+
* @version 1.3.0 20200201
454454
*/
455455
if (typeof DataSource === "undefined") {
456456

@@ -642,7 +642,7 @@ if (typeof DataSource === "undefined") {
642642
//Workaround for some browsers, e.g. MS Edge, if they have problems with
643643
//!DOCTYPE + !ENTITY. Therefore the document is copied so that the
644644
//DOCTYPE declaration is omitted.
645-
var result = processor.transformToFragment(xml.clone(), document);
645+
var result = processor.transformToDocument(xml);
646646
var nodes = result.querySelectorAll(escape ? "*" : "*[escape]");
647647
nodes.forEach((node) => {
648648
if (escape || (node.getAttribute("escape") || "on").match(/^yes|on|true|1$/i)) {
@@ -665,7 +665,17 @@ if (typeof DataSource === "undefined") {
665665
node.setAttribute("type", "composite/javascript");
666666
});
667667

668-
return result;
668+
var nodes = result.childNodes;
669+
if (result.body)
670+
nodes = result.body.childNodes;
671+
else if (result.firstChild
672+
&& result.firstChild.nodeName.match(/^transformiix\b/i))
673+
nodes = result.firstChild.childNodes;
674+
var fragment = document.createDocumentFragment();
675+
nodes = Array.from(nodes);
676+
for (var loop = 0; loop < nodes.length; loop++)
677+
fragment.appendChild(nodes[loop]);
678+
return fragment;
669679
};
670680

671681
/**
@@ -828,12 +838,12 @@ if (typeof DataSource === "undefined") {
828838
*
829839
* <h1 output="{{Messages['contact.title']}}"/>
830840
*
831-
* Messages 1.2.0x 20200106
841+
* Messages 1.2.1 20200106
832842
* Copyright (C) 2020 Seanox Software Solutions
833843
* Alle Rechte vorbehalten.
834844
*
835845
* @author Seanox Software Solutions
836-
* @version 1.2.0x 20200106
846+
* @version 1.2.1 20200106
837847
*/
838848
if (typeof Messages === "undefined") {
839849

@@ -974,12 +984,12 @@ if (typeof Messages === "undefined") {
974984
* Thus virtual paths, object structure in JavaScript (namespace) and the
975985
* nesting of the DOM must match.
976986
*
977-
* Composite 1.2x.0x 20200127
987+
* Composite 1.3.0 20200127
978988
* Copyright (C) 2020 Seanox Software Solutions
979989
* Alle Rechte vorbehalten.
980990
*
981991
* @author Seanox Software Solutions
982-
* @version 1.2x.0x 20200127
992+
* @version 1.3.0 20200127
983993
*/
984994
if (typeof Composite === "undefined") {
985995

@@ -4347,12 +4357,12 @@ if (typeof Expression === "undefined") {
43474357
* is taken over by the Composite API in this implementation. SiteMap is an
43484358
* extension and is based on the Composite API.
43494359
*
4350-
* MVC 1.1x.0x 20200122
4360+
* MVC 1.2.0 20200122
43514361
* Copyright (C) 2020 Seanox Software Solutions
43524362
* Alle Rechte vorbehalten.
43534363
*
43544364
* @author Seanox Software Solutions
4355-
* @version 1.1x.0x 20200122
4365+
* @version 1.2.0 20200122
43564366
*/
43574367
if (typeof Path === "undefined") {
43584368

@@ -5351,12 +5361,12 @@ if (typeof SiteMap === "undefined") {
53515361
* assertion was not true, a error is thrown -- see as an example the
53525362
* implementation here.
53535363
*
5354-
* Test 1.1.0x 20200106
5364+
* Test 1.1.1 20200106
53555365
* Copyright (C) 2020 Seanox Software Solutions
53565366
* Alle Rechte vorbehalten.
53575367
*
53585368
* @author Seanox Software Solutions
5359-
* @version 1.1.0x 20200106
5369+
* @version 1.1.1 20200106
53605370
*/
53615371
if (typeof Test === "undefined") {
53625372

Step_04 Internationalization (i18n)/assets/aspect-js.js

Lines changed: 24 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@
2424
* ----
2525
* General extension of the JavaScript API.
2626
*
27-
* Extension 1.1.0x 20200106
27+
* Extension 1.1.1 20200106
2828
* Copyright (C) 2020 Seanox Software Solutions
2929
* Alle Rechte vorbehalten.
3030
*
3131
* @author Seanox Software Solutions
32-
* @version 1.1.0x20200106
32+
* @version 1.1.1 20200106
3333
*/
3434
if (typeof Namespace === "undefined") {
3535

@@ -445,12 +445,12 @@ if (window.location.pathcontext === undefined) {
445445
* The data is queried with XPath, the result can be concatenated and
446446
* aggregated and the result can be transformed with XSLT.
447447
*
448-
* DataSource 1.2x.0x 20200131
448+
* DataSource 1.3.0 20200201
449449
* Copyright (C) 2020 Seanox Software Solutions
450450
* Alle Rechte vorbehalten.
451451
*
452452
* @author Seanox Software Solutions
453-
* @version 1.2x.0x 20200131
453+
* @version 1.3.0 20200201
454454
*/
455455
if (typeof DataSource === "undefined") {
456456

@@ -642,7 +642,7 @@ if (typeof DataSource === "undefined") {
642642
//Workaround for some browsers, e.g. MS Edge, if they have problems with
643643
//!DOCTYPE + !ENTITY. Therefore the document is copied so that the
644644
//DOCTYPE declaration is omitted.
645-
var result = processor.transformToFragment(xml.clone(), document);
645+
var result = processor.transformToDocument(xml);
646646
var nodes = result.querySelectorAll(escape ? "*" : "*[escape]");
647647
nodes.forEach((node) => {
648648
if (escape || (node.getAttribute("escape") || "on").match(/^yes|on|true|1$/i)) {
@@ -665,7 +665,17 @@ if (typeof DataSource === "undefined") {
665665
node.setAttribute("type", "composite/javascript");
666666
});
667667

668-
return result;
668+
var nodes = result.childNodes;
669+
if (result.body)
670+
nodes = result.body.childNodes;
671+
else if (result.firstChild
672+
&& result.firstChild.nodeName.match(/^transformiix\b/i))
673+
nodes = result.firstChild.childNodes;
674+
var fragment = document.createDocumentFragment();
675+
nodes = Array.from(nodes);
676+
for (var loop = 0; loop < nodes.length; loop++)
677+
fragment.appendChild(nodes[loop]);
678+
return fragment;
669679
};
670680

671681
/**
@@ -828,12 +838,12 @@ if (typeof DataSource === "undefined") {
828838
*
829839
* <h1 output="{{Messages['contact.title']}}"/>
830840
*
831-
* Messages 1.2.0x 20200106
841+
* Messages 1.2.1 20200106
832842
* Copyright (C) 2020 Seanox Software Solutions
833843
* Alle Rechte vorbehalten.
834844
*
835845
* @author Seanox Software Solutions
836-
* @version 1.2.0x 20200106
846+
* @version 1.2.1 20200106
837847
*/
838848
if (typeof Messages === "undefined") {
839849

@@ -974,12 +984,12 @@ if (typeof Messages === "undefined") {
974984
* Thus virtual paths, object structure in JavaScript (namespace) and the
975985
* nesting of the DOM must match.
976986
*
977-
* Composite 1.2x.0x 20200127
987+
* Composite 1.3.0 20200127
978988
* Copyright (C) 2020 Seanox Software Solutions
979989
* Alle Rechte vorbehalten.
980990
*
981991
* @author Seanox Software Solutions
982-
* @version 1.2x.0x 20200127
992+
* @version 1.3.0 20200127
983993
*/
984994
if (typeof Composite === "undefined") {
985995

@@ -4347,12 +4357,12 @@ if (typeof Expression === "undefined") {
43474357
* is taken over by the Composite API in this implementation. SiteMap is an
43484358
* extension and is based on the Composite API.
43494359
*
4350-
* MVC 1.1x.0x 20200122
4360+
* MVC 1.2.0 20200122
43514361
* Copyright (C) 2020 Seanox Software Solutions
43524362
* Alle Rechte vorbehalten.
43534363
*
43544364
* @author Seanox Software Solutions
4355-
* @version 1.1x.0x 20200122
4365+
* @version 1.2.0 20200122
43564366
*/
43574367
if (typeof Path === "undefined") {
43584368

@@ -5351,12 +5361,12 @@ if (typeof SiteMap === "undefined") {
53515361
* assertion was not true, a error is thrown -- see as an example the
53525362
* implementation here.
53535363
*
5354-
* Test 1.1.0x 20200106
5364+
* Test 1.1.1 20200106
53555365
* Copyright (C) 2020 Seanox Software Solutions
53565366
* Alle Rechte vorbehalten.
53575367
*
53585368
* @author Seanox Software Solutions
5359-
* @version 1.1.0x 20200106
5369+
* @version 1.1.1 20200106
53605370
*/
53615371
if (typeof Test === "undefined") {
53625372

0 commit comments

Comments
 (0)