@genexus/web-standard-functions
Version:
GeneXus JavaScript standard functions library for web generators
38 lines • 1.15 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.testCases = void 0;
exports.testCases = [
[
/* from https://developer.mozilla.org/en-US/docs/Web/API/XSLTProcessor/Basic_Example*/
`
<Article>
<Title>My Article</Title>
<Authors>
<Author>Mr. Foo</Author>
<Author>Mr. Bar</Author>
</Authors>
<Body>This is my article text.</Body>
</Article>
`,
`
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="text"/>
<xsl:template match="/">
Article - <xsl:value-of select="/Article/Title"/>
Authors:<xsl:apply-templates select="/Article/Authors/Author"/>
</xsl:template>
<xsl:template match="Author">
- <xsl:value-of select="." />
</xsl:template>
</xsl:stylesheet>
`,
`
Article - My Article
Authors:
- Mr. Foo
- Mr. Bar`
]
];
//# sourceMappingURL=xsltapply-cases.js.map