Removed any Tibco references and adjusted prefixes in XPath Sample
This commit is contained in:
@@ -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)
|
||||
@@ -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>
|
||||
|
||||
@@ -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">
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user