Organized sample files

This commit is contained in:
2023-03-02 14:05:28 +01:00
parent 43dcc9fe26
commit a8fa92b42e
22 changed files with 27 additions and 171 deletions

View File

@@ -1,129 +0,0 @@
abs(
adjust-dateTime-to-timezone(
adjust-date-to-timezone(
adjust-time-to-timezone(
avg(
base-uri(
boolean(
ceiling(
codepoints-to-string(
collection(
compare(
concat(
contains(
context-item(
count(
current(
current-date(
current-dateTime(
current-group(
current-grouping-key(
current-time(
data(
day-from-date(
day-from-dateTime(
days-from-dayTimeDuration(
deep-equal(
default-collation(
distinct-nodes(
distinct-values(
doc(
document(
document-uri(
element-available(
empty(
ends-with(
error(
escape-uri(
exactly-one(
exists(
expanded-QName(
false(
floor(
format-date(
format-dateTime(
format-number(
format-time(
function-available(
generate-id(
hours-from-dateTime(
hours-from-dayTimeDuration(
hours-from-time(
id(
idref(
implicit-timezone(
index-of(
input(
in-scope-prefixes(
insert-before(
item-at(
key(
lang(
last(
local-name(
local-name-from-QName(
lower-case(
matches(
max(
min(
minutes-from-dateTime(
minutes-from-dayTimeDuration(
minutes-from-time(
month-from-date(
month-from-dateTime(
months-from-yearMonthDuration(
name(
namespace-uri(
namespace-uri-for-prefix(
namespace-uri-from-QName(
node-kind(
node-name(
normalize-space(
normalize-unicode(
not(
number(
one-or-more(
position(
regex-group(
remove(
replace(
resolve-QName(
resolve-uri(
reverse(
root(
round(
round-half-to-even(
seconds-from-dateTime(
seconds-from-dayTimeDuration(
seconds-from-time(
sequence-node-identical(
starts-with(
string(
string-join(
string-length(
string-pad(
string-to-codepoints(
subsequence(
substring(
substring-after(
substring-before(
subtract-dateTimes-yielding-dayTimeDuration(
subtract-dateTimes-yielding-yearMonthDuration(
sum(
system-property(
timezone-from-date(
timezone-from-dateTime(
timezone-from-time(
tokenize(
trace(
translate(
true(
unordered(
unparsed-entity-public-id(
unparsed-entity-uri(
unparsed-text(
upper-case(
year-from-date(
year-from-dateTime(
years-from-yearMonthDuration(
zero-or-one(

View File

@@ -1,33 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<l:library xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.release11.com" xmlns:l="http://www.release11.com/library" xmlns:p="http://www.release11.com/person" xmlns:b="http://www.release11.com/book">
<l:libraryName>City library</l:libraryName>
<l:libraryID>345123</l:libraryID>
<l:readerList>
<p:person>
<p:readerID>7321</p:readerID>
<p:name>Adam</p:name>
<p:surname>Choke</p:surname>
</p:person>
<p:person>
<p:readerID>5123</p:readerID>
<p:name>Lauren</p:name>
<p:surname>Wong</p:surname>
</p:person>
</l:readerList>
<l:bookList>
<b:book>
<b:bookID>6422</b:bookID>
<b:title>Harry Potter</b:title>
<p:readerID>7542</p:readerID>
</b:book>
<b:book>
<b:bookID>1234</b:bookID>
<b:title>Macbeth</b:title>
<p:readerID>5123</p:readerID>
</b:book>
<b:book>
<b:bookID>9556</b:bookID>
<b:title>Romeo and Juliet</b:title>
</b:book>
</l:bookList>
</l:library>

View File

@@ -1,9 +0,0 @@
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:b="http://www.demo.com">
<xsl:template match="b:books">
<Library>
<BookCount>
<xsl:value-of select="count(b:book)" />
</BookCount>
</Library>
</xsl:template>
</xsl:stylesheet>

5
Samples/xsd/sample.xml Normal file
View File

@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<ns0:values xmlns:ns0 = "http://www.tibco.com/schemas/test/Test/Resources/Schema.xsd">
<ns0:value>Test</ns0:value>
<ns0:value>Test3</ns0:value>
</ns0:values>

10
Samples/xsd/schema.xsd Normal file
View File

@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.tibco.com/schemas/test/Test/Resources/Schema.xsd" targetNamespace="http://www.tibco.com/schemas/test/Test/Resources/Schema.xsd" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:element name="values">
<xs:complexType>
<xs:sequence>
<xs:element name="value" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>

View File

@@ -0,0 +1,12 @@
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:b="http://www.demo.com" xmlns:p="http://www.release11.com/person" xmlns:l="http://www.release11.com/library">
<xsl:template match="/">
<Library>
<ReaderCount>
<xsl:value-of select="count(//p:person)" />
</ReaderCount>
<BookCount>
<xsl:value-of select="count(/l:library/l:bookList/b:book)" />
</BookCount>
</Library>
</xsl:template>
</xsl:stylesheet>