Skip to content

Commit 4c96287

Browse files
committed
#0000 Project: Finalization of version 1.3.1
1 parent 4154778 commit 4c96287

File tree

16 files changed

+80
-75
lines changed

16 files changed

+80
-75
lines changed

CHANGES

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
1.3.0 2020xxxx
1+
1.3.1 20200202
2+
CR: Assets: Update of aspect-js.js
3+
4+
1.3.0 20200202
25
CR: Markup: Optimization of img tags with dynamic URL
36
CR: CSS: Added style for invalid input elements
47
CR: Assets: Shrinking of images and fonts

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,11 @@ Street, Fifth Floor, Boston, MA 02110-1301, USA.
5959

6060

6161
# Downloads
62-
[1.3.0 Tutorial](https://raw.githubusercontent.com/seanox/aspect-js-tutorial/master/releases/aspect-js%20tutorial-1.3.0.zip)
62+
[1.3.1 Tutorial](https://raw.githubusercontent.com/seanox/aspect-js-tutorial/master/releases/aspect-js%20tutorial-1.3.1.zip)
6363

6464

6565
# Changes (Change Log)
66-
## 1.3.0 2020xxxx (summary of the next version)
66+
## 1.3.1 20200202 (summary of the current version)
6767
CR: Markup: Optimization of img tags with dynamic URL
6868
CR: CSS: Added style for invalid input elements
6969
CR: Assets: Shrinking of images and fonts

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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.3.0 20200201
448+
* DataSource 1.3.1 20200202
449449
* Copyright (C) 2020 Seanox Software Solutions
450450
* Alle Rechte vorbehalten.
451451
*
452452
* @author Seanox Software Solutions
453-
* @version 1.3.0 20200201
453+
* @version 1.3.1 20200202
454454
*/
455455
if (typeof DataSource === "undefined") {
456456

@@ -529,12 +529,12 @@ if (typeof DataSource === "undefined") {
529529
throw new Error("Locale not available");
530530

531531
var request = new XMLHttpRequest();
532+
request.overrideMimeType("application/xslt+xml");
532533
request.open("HEAD", DataSource.DATA + "/locales.xml", false);
533534
request.send();
534535
if (request.status == 404)
535536
return;
536537
request.open("GET", DataSource.DATA + "/locales.xml", false);
537-
request.overrideMimeType("application/xslt+xml");
538538
request.send();
539539

540540
//DataSource.data
@@ -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.transformToDocument(xml);
645+
var result = processor.transformToDocument(xml.clone());
646646
var nodes = result.querySelectorAll(escape ? "*" : "*[escape]");
647647
nodes.forEach((node) => {
648648
if (escape || (node.getAttribute("escape") || "on").match(/^yes|on|true|1$/i)) {
@@ -713,15 +713,15 @@ if (typeof DataSource === "undefined") {
713713
return DataSource.cache[hash];
714714

715715
var request = new XMLHttpRequest();
716-
request.open("GET", data, false);
717716
request.overrideMimeType("application/xslt+xml");
717+
request.open("GET", data, false);
718718
request.send();
719719
if (request.status != 200)
720720
throw new Error("HTTP status " + request.status + " for " + request.responseURL);
721721
data = request.responseXML;
722722
DataSource.cache[hash] = data;
723723

724-
return data;
724+
return data.clone();
725725
}
726726

727727
if (!type.match(/^xml$/)

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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.3.0 20200201
448+
* DataSource 1.3.1 20200202
449449
* Copyright (C) 2020 Seanox Software Solutions
450450
* Alle Rechte vorbehalten.
451451
*
452452
* @author Seanox Software Solutions
453-
* @version 1.3.0 20200201
453+
* @version 1.3.1 20200202
454454
*/
455455
if (typeof DataSource === "undefined") {
456456

@@ -529,12 +529,12 @@ if (typeof DataSource === "undefined") {
529529
throw new Error("Locale not available");
530530

531531
var request = new XMLHttpRequest();
532+
request.overrideMimeType("application/xslt+xml");
532533
request.open("HEAD", DataSource.DATA + "/locales.xml", false);
533534
request.send();
534535
if (request.status == 404)
535536
return;
536537
request.open("GET", DataSource.DATA + "/locales.xml", false);
537-
request.overrideMimeType("application/xslt+xml");
538538
request.send();
539539

540540
//DataSource.data
@@ -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.transformToDocument(xml);
645+
var result = processor.transformToDocument(xml.clone());
646646
var nodes = result.querySelectorAll(escape ? "*" : "*[escape]");
647647
nodes.forEach((node) => {
648648
if (escape || (node.getAttribute("escape") || "on").match(/^yes|on|true|1$/i)) {
@@ -713,15 +713,15 @@ if (typeof DataSource === "undefined") {
713713
return DataSource.cache[hash];
714714

715715
var request = new XMLHttpRequest();
716-
request.open("GET", data, false);
717716
request.overrideMimeType("application/xslt+xml");
717+
request.open("GET", data, false);
718718
request.send();
719719
if (request.status != 200)
720720
throw new Error("HTTP status " + request.status + " for " + request.responseURL);
721721
data = request.responseXML;
722722
DataSource.cache[hash] = data;
723723

724-
return data;
724+
return data.clone();
725725
}
726726

727727
if (!type.match(/^xml$/)

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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.3.0 20200201
448+
* DataSource 1.3.1 20200202
449449
* Copyright (C) 2020 Seanox Software Solutions
450450
* Alle Rechte vorbehalten.
451451
*
452452
* @author Seanox Software Solutions
453-
* @version 1.3.0 20200201
453+
* @version 1.3.1 20200202
454454
*/
455455
if (typeof DataSource === "undefined") {
456456

@@ -529,12 +529,12 @@ if (typeof DataSource === "undefined") {
529529
throw new Error("Locale not available");
530530

531531
var request = new XMLHttpRequest();
532+
request.overrideMimeType("application/xslt+xml");
532533
request.open("HEAD", DataSource.DATA + "/locales.xml", false);
533534
request.send();
534535
if (request.status == 404)
535536
return;
536537
request.open("GET", DataSource.DATA + "/locales.xml", false);
537-
request.overrideMimeType("application/xslt+xml");
538538
request.send();
539539

540540
//DataSource.data
@@ -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.transformToDocument(xml);
645+
var result = processor.transformToDocument(xml.clone());
646646
var nodes = result.querySelectorAll(escape ? "*" : "*[escape]");
647647
nodes.forEach((node) => {
648648
if (escape || (node.getAttribute("escape") || "on").match(/^yes|on|true|1$/i)) {
@@ -713,15 +713,15 @@ if (typeof DataSource === "undefined") {
713713
return DataSource.cache[hash];
714714

715715
var request = new XMLHttpRequest();
716-
request.open("GET", data, false);
717716
request.overrideMimeType("application/xslt+xml");
717+
request.open("GET", data, false);
718718
request.send();
719719
if (request.status != 200)
720720
throw new Error("HTTP status " + request.status + " for " + request.responseURL);
721721
data = request.responseXML;
722722
DataSource.cache[hash] = data;
723723

724-
return data;
724+
return data.clone();
725725
}
726726

727727
if (!type.match(/^xml$/)

Step_05 The first module/assets/aspect-js.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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.3.0 20200201
448+
* DataSource 1.3.1 20200202
449449
* Copyright (C) 2020 Seanox Software Solutions
450450
* Alle Rechte vorbehalten.
451451
*
452452
* @author Seanox Software Solutions
453-
* @version 1.3.0 20200201
453+
* @version 1.3.1 20200202
454454
*/
455455
if (typeof DataSource === "undefined") {
456456

@@ -529,12 +529,12 @@ if (typeof DataSource === "undefined") {
529529
throw new Error("Locale not available");
530530

531531
var request = new XMLHttpRequest();
532+
request.overrideMimeType("application/xslt+xml");
532533
request.open("HEAD", DataSource.DATA + "/locales.xml", false);
533534
request.send();
534535
if (request.status == 404)
535536
return;
536537
request.open("GET", DataSource.DATA + "/locales.xml", false);
537-
request.overrideMimeType("application/xslt+xml");
538538
request.send();
539539

540540
//DataSource.data
@@ -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.transformToDocument(xml);
645+
var result = processor.transformToDocument(xml.clone());
646646
var nodes = result.querySelectorAll(escape ? "*" : "*[escape]");
647647
nodes.forEach((node) => {
648648
if (escape || (node.getAttribute("escape") || "on").match(/^yes|on|true|1$/i)) {
@@ -713,15 +713,15 @@ if (typeof DataSource === "undefined") {
713713
return DataSource.cache[hash];
714714

715715
var request = new XMLHttpRequest();
716-
request.open("GET", data, false);
717716
request.overrideMimeType("application/xslt+xml");
717+
request.open("GET", data, false);
718718
request.send();
719719
if (request.status != 200)
720720
throw new Error("HTTP status " + request.status + " for " + request.responseURL);
721721
data = request.responseXML;
722722
DataSource.cache[hash] = data;
723723

724-
return data;
724+
return data.clone();
725725
}
726726

727727
if (!type.match(/^xml$/)

Step_06 DataSource - Usage of dynamic data/assets/aspect-js.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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.3.0 20200201
448+
* DataSource 1.3.1 20200202
449449
* Copyright (C) 2020 Seanox Software Solutions
450450
* Alle Rechte vorbehalten.
451451
*
452452
* @author Seanox Software Solutions
453-
* @version 1.3.0 20200201
453+
* @version 1.3.1 20200202
454454
*/
455455
if (typeof DataSource === "undefined") {
456456

@@ -529,12 +529,12 @@ if (typeof DataSource === "undefined") {
529529
throw new Error("Locale not available");
530530

531531
var request = new XMLHttpRequest();
532+
request.overrideMimeType("application/xslt+xml");
532533
request.open("HEAD", DataSource.DATA + "/locales.xml", false);
533534
request.send();
534535
if (request.status == 404)
535536
return;
536537
request.open("GET", DataSource.DATA + "/locales.xml", false);
537-
request.overrideMimeType("application/xslt+xml");
538538
request.send();
539539

540540
//DataSource.data
@@ -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.transformToDocument(xml);
645+
var result = processor.transformToDocument(xml.clone());
646646
var nodes = result.querySelectorAll(escape ? "*" : "*[escape]");
647647
nodes.forEach((node) => {
648648
if (escape || (node.getAttribute("escape") || "on").match(/^yes|on|true|1$/i)) {
@@ -713,15 +713,15 @@ if (typeof DataSource === "undefined") {
713713
return DataSource.cache[hash];
714714

715715
var request = new XMLHttpRequest();
716-
request.open("GET", data, false);
717716
request.overrideMimeType("application/xslt+xml");
717+
request.open("GET", data, false);
718718
request.send();
719719
if (request.status != 200)
720720
throw new Error("HTTP status " + request.status + " for " + request.responseURL);
721721
data = request.responseXML;
722722
DataSource.cache[hash] = data;
723723

724-
return data;
724+
return data.clone();
725725
}
726726

727727
if (!type.match(/^xml$/)

Step_07 SiteMap - Controlling components and views/assets/aspect-js.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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.3.0 20200201
448+
* DataSource 1.3.1 20200202
449449
* Copyright (C) 2020 Seanox Software Solutions
450450
* Alle Rechte vorbehalten.
451451
*
452452
* @author Seanox Software Solutions
453-
* @version 1.3.0 20200201
453+
* @version 1.3.1 20200202
454454
*/
455455
if (typeof DataSource === "undefined") {
456456

@@ -529,12 +529,12 @@ if (typeof DataSource === "undefined") {
529529
throw new Error("Locale not available");
530530

531531
var request = new XMLHttpRequest();
532+
request.overrideMimeType("application/xslt+xml");
532533
request.open("HEAD", DataSource.DATA + "/locales.xml", false);
533534
request.send();
534535
if (request.status == 404)
535536
return;
536537
request.open("GET", DataSource.DATA + "/locales.xml", false);
537-
request.overrideMimeType("application/xslt+xml");
538538
request.send();
539539

540540
//DataSource.data
@@ -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.transformToDocument(xml);
645+
var result = processor.transformToDocument(xml.clone());
646646
var nodes = result.querySelectorAll(escape ? "*" : "*[escape]");
647647
nodes.forEach((node) => {
648648
if (escape || (node.getAttribute("escape") || "on").match(/^yes|on|true|1$/i)) {
@@ -713,15 +713,15 @@ if (typeof DataSource === "undefined") {
713713
return DataSource.cache[hash];
714714

715715
var request = new XMLHttpRequest();
716-
request.open("GET", data, false);
717716
request.overrideMimeType("application/xslt+xml");
717+
request.open("GET", data, false);
718718
request.send();
719719
if (request.status != 200)
720720
throw new Error("HTTP status " + request.status + " for " + request.responseURL);
721721
data = request.responseXML;
722722
DataSource.cache[hash] = data;
723723

724-
return data;
724+
return data.clone();
725725
}
726726

727727
if (!type.match(/^xml$/)

0 commit comments

Comments
 (0)