Removed any Tibco references and adjusted prefixes in XPath Sample

This commit is contained in:
2023-06-21 12:43:33 +02:00
parent bb118c47db
commit cac46c39f3
5 changed files with 7 additions and 7 deletions

View File

@@ -1,5 +1,5 @@
declare default element namespace "http://www.tibco.com/schemas/Shemy4tools/Folder/Schema.xsd";
declare namespace u = "http://www.tibco.com/schemas/Shemy4tools/Folder/Schema.xsd";
declare default element namespace "http://www.release11.com/schemas/Sample.xsd";
declare namespace u = "http://www.release11.com/schemas/Sample.xsd";
for $x in /u:root/u:UserList[@Id = 'a']/u:User
return string($x/u:Name)

View File

@@ -1,5 +1,5 @@
<?xml version = "1.0" encoding = "UTF-8"?>
<u:root xmlns:u = "http://www.tibco.com/schemas/Shemy4tools/Folder/Schema.xsd" xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation = "http://www.tibco.com/schemas/Shemy4tools/Folder/Schema.xsd Schema4tools.xsd">
<u:root xmlns:u = "http://www.release11.com/schemas/Sample.xsd" xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation = "http://www.tibco.com/schemas/Shemy4tools/Folder/Schema.xsd Schema4tools.xsd">
<u:UserList Id = "a">
<u:User Id = "1">
<u:Name>John</u:Name>

View File

@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:u="http://www.tibco.com/schemas/Shemy4tools/Folder/Schema.xsd"
targetNamespace="http://www.tibco.com/schemas/Shemy4tools/Folder/Schema.xsd"
xmlns:u="http://www.release11.com/schemas/Sample.xsd"
targetNamespace="http://www.release11.com/schemas/Sample.xsd"
elementFormDefault="qualified"
attributeFormDefault="unqualified">
<xs:element name="root">

View File

@@ -1,5 +1,5 @@
<?xml version = "1.0" encoding = "UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:u = "http://www.tibco.com/schemas/Shemy4tools/Folder/Schema.xsd"
<xsl:stylesheet version="1.0" xmlns:u = "http://www.release11.com/schemas/Sample.xsd"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<UserLists>

View File

@@ -21,7 +21,7 @@ function setDefault() {
emit(emitName, "{'message': 'Here we have to add some proper message', 'answer': 'Ya, definitely'}")
break;
case "xpath":
emit(emitName, "/root/UserList/User[../NameList = 'FirstList']")
emit(emitName, "/u:root/u:UserList/u:User[../u:NameList = 'FirstList']")
break;
case "xsd":
emit(emitName, sampleXSD)