473,734 Members | 2,397 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

query regarding xs:key & key ref

Hi All

As per my understanding we use xs:key when we want to have a unique
value for a element or attribute and keyref to refer to one of the
unique values of that element or attribute.

However I am not sure if this uniqueness is checked when we validate a
document using XMLSpy

Here is the protion of myschema

=============== =============== =============== =============== ======
<xs:element name="PROTOHEAD ERENTRY">
<xs:complexType >
<xs:sequence>
<xs:element name="ABNFGRAMM ER">
<xs:complexType >
<xs:sequence>
<xs:element name="ABNFRULES ET">
<xs:simpleTyp e>
<xs:list>
<xs:simpleTyp e>
<xs:restricti on base="xs:token" >
<xs:pattern value="\p{IsBas icLatin}*"/>
</xs:restriction>
</xs:simpleType>
</xs:list>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="NAME" type="xs:token"/>
<xs:attribute name="HEADERSEQ NUM" type="xs:positi veInteger"/>
</xs:complexType>
</xs:element>
=============== =============== =============== =============== =====

now at the root element , which is above PROTOHEADERENTR Y, i do this
=============== =============== =============== =============== ====
<xs:key name="KEYHEADER NUM">
<xs:selector xpath="./PROTOHEADERENTR Y"/>
<xs:field xpath="HEADERSE QNUM"/>
</xs:key>

Now when I write a xml file and validate against this schema it gets
validated even if I use same HEADERSEQNUM value for multiple
PROTOHEADERENTR Y elements

I am using XMLSpy

I think I am missing some trick here

PLease Help

Regards
Shyam

Jun 16 '06 #1
8 1354


shyam wrote:

<xs:attribute name="HEADERSEQ NUM" type="xs:positi veInteger"/>
<xs:selector xpath="./PROTOHEADERENTR Y"/>
<xs:field xpath="HEADERSE QNUM"/>


XPath to select an attribute is @attributeName so you probably want
<xs:field xpath="@HEADERS EQNUM"/>

--

Martin Honnen
http://JavaScript.FAQTs.com/
Jun 16 '06 #2

Martin Honnen wrote:
shyam wrote:

<xs:attribute name="HEADERSEQ NUM" type="xs:positi veInteger"/>
<xs:selector xpath="./PROTOHEADERENTR Y"/>
<xs:field xpath="HEADERSE QNUM"/>


XPath to select an attribute is @attributeName so you probably want
<xs:field xpath="@HEADERS EQNUM"/>


Even with this its dosent work

--

Martin Honnen
http://JavaScript.FAQTs.com/


Jun 16 '06 #3
You need to declare a target namespace in your schema and use it in the
xpath. In the example below I used myTNS as the prefix for your target
namespace.

<xs:schema ... targetNamespace ="myTargetNames pace"
xmlns:myTNS="my TargetNamespace " xmlns="myTarget Namespace"...>

.....

<xs:selector xpath="./myTNS:PROTOHEAD ERENTRY"/>
<xs:field xpath="@HEADERS EQNUM"/>

....

--
Stan Kitsis
Program Manager, XML Technologies
Microsoft Corporation

This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
"shyam" <sh********@gma il.com> wrote in message
news:11******** **************@ u72g2000cwu.goo glegroups.com.. .

Martin Honnen wrote:
shyam wrote:

> <xs:attribute name="HEADERSEQ NUM" type="xs:positi veInteger"/>


> <xs:selector xpath="./PROTOHEADERENTR Y"/>
> <xs:field xpath="HEADERSE QNUM"/>


XPath to select an attribute is @attributeName so you probably want
<xs:field xpath="@HEADERS EQNUM"/>


Even with this its dosent work

--

Martin Honnen
http://JavaScript.FAQTs.com/

Jun 16 '06 #4

Stan Kitsis [MSFT] wrote:
You need to declare a target namespace in your schema and use it in the
xpath. In the example below I used myTNS as the prefix for your target
namespace.

<xs:schema ... targetNamespace ="myTargetNames pace"
xmlns:myTNS="my TargetNamespace " xmlns="myTarget Namespace"...>

....

<xs:selector xpath="./myTNS:PROTOHEAD ERENTRY"/>
<xs:field xpath="@HEADERS EQNUM"/>

Thanks Stan This has worked ,
however the keyref thing is still not working
I have defined a keyref
<xs:keyref name="KEYENTRYN UM" refer="myTNS:KE YHEADERNUM">
<xs:selector xpath="./myTNS:PROTOHEAD ER"/>
<xs:field xpath="@ENTRYSE QNUM"/>
</xs:keyref>

which refers to the earlier xs:key

So i want is that the ENTRYSEQNUM attribute of PROTOHEADER element
should refer to a unique and existing HEADERSEQNUM attribute of
myTNS:PROTOHEAD ERENTRY element

I guess I am again missing some minor trick and would graetly
appretiate if you could help out

Thanks
Shyam
...

--
Stan Kitsis
Program Manager, XML Technologies
Microsoft Corporation

This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
"shyam" <sh********@gma il.com> wrote in message
news:11******** **************@ u72g2000cwu.goo glegroups.com.. .

Martin Honnen wrote:
shyam wrote:
> <xs:attribute name="HEADERSEQ NUM" type="xs:positi veInteger"/>
> <xs:selector xpath="./PROTOHEADERENTR Y"/>
> <xs:field xpath="HEADERSE QNUM"/>

XPath to select an attribute is @attributeName so you probably want
<xs:field xpath="@HEADERS EQNUM"/>


Even with this its dosent work

--

Martin Honnen
http://JavaScript.FAQTs.com/


Jun 17 '06 #5
Shyam,

Can you post your schema?

--
Stan Kitsis
Program Manager, XML Technologies
Microsoft Corporation

This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
"shyam" <sh********@gma il.com> wrote in message
news:11******** **************@ i40g2000cwc.goo glegroups.com.. .

Stan Kitsis [MSFT] wrote:
You need to declare a target namespace in your schema and use it in the
xpath. In the example below I used myTNS as the prefix for your target
namespace.

<xs:schema ... targetNamespace ="myTargetNames pace"
xmlns:myTNS="my TargetNamespace " xmlns="myTarget Namespace"...>

....

<xs:selector xpath="./myTNS:PROTOHEAD ERENTRY"/>
<xs:field xpath="@HEADERS EQNUM"/>


Thanks Stan This has worked ,
however the keyref thing is still not working
I have defined a keyref
<xs:keyref name="KEYENTRYN UM" refer="myTNS:KE YHEADERNUM">
<xs:selector xpath="./myTNS:PROTOHEAD ER"/>
<xs:field xpath="@ENTRYSE QNUM"/>
</xs:keyref>

which refers to the earlier xs:key

So i want is that the ENTRYSEQNUM attribute of PROTOHEADER element
should refer to a unique and existing HEADERSEQNUM attribute of
myTNS:PROTOHEAD ERENTRY element

I guess I am again missing some minor trick and would graetly
appretiate if you could help out

Thanks
Shyam
...

--
Stan Kitsis
Program Manager, XML Technologies
Microsoft Corporation

This posting is provided "AS IS" with no warranties, and confers no
rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
"shyam" <sh********@gma il.com> wrote in message
news:11******** **************@ u72g2000cwu.goo glegroups.com.. .
>
> Martin Honnen wrote:
>> shyam wrote:
>>
>>
>> > <xs:attribute name="HEADERSEQ NUM" type="xs:positi veInteger"/>
>>
>>
>> > <xs:selector xpath="./PROTOHEADERENTR Y"/>
>> > <xs:field xpath="HEADERSE QNUM"/>
>>
>> XPath to select an attribute is @attributeName so you probably want
>> <xs:field xpath="@HEADERS EQNUM"/>
>
> Even with this its dosent work
>
>>
>> --
>>
>> Martin Honnen
>> http://JavaScript.FAQTs.com/
>

Jun 19 '06 #6

Stan Kitsis [MSFT] wrote:
Shyam,

Can you post your schema?
=============== =============== =============== =============== ==
<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns="http://www.w3schools.c om" xmlns:myTNS="MY TARGET"
targetNamespace ="MYTARGET" elementFormDefa ult="qualified" >
<xs:element name="PROTOHEAD ERENTRY">
<xs:complexType >
<xs:sequence>
<xs:element name="ABNFGRAMM ER">
<xs:complexType >
<xs:sequence>
<xs:element name="ABNFRULES ET">
<xs:simpleTyp e>
<xs:list>
<xs:simpleTyp e>
<xs:restricti on base="xs:token" >
<xs:pattern value="\p{IsBas icLatin}*"/>
</xs:restriction>
</xs:simpleType>
</xs:list>
</xs:simpleType>
</xs:element>
<xs:element name="ABNFEXCEP TION" maxOccurs="unbo unded">
<xs:complexType >
<xs:attribute name="RULENAME" type="xs:token"/>
<xs:attribute name="EXCEPTION ">
<xs:simpleTyp e>
<xs:restricti on base="xs:token" >
<xs:enumerati on value="MANDATOR Y"/>
<xs:enumerati on value="IGNORESE Q"/>
<xs:enumerati on value="IGNORECA SE"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="NAME" type="xs:token"/>
<xs:attribute name="HEADERSEQ NUM" type="xs:positi veInteger"/>
</xs:complexType>
</xs:element>
<xs:element name="ABNFBASIC ">
<xs:complexType >
<xs:sequence>
<xs:element name="RULESTRIN G" type="xs:string "/>
</xs:sequence>
<xs:attribute name="ABNFBASIC NAME" type="xs:NMTOKE N"/>
</xs:complexType>
</xs:element>
<xs:element name="ABNFRULE" >
<xs:complexType >
<xs:sequence>
<xs:element name="RULESTRIN G">
<xs:simpleTyp e>
<xs:list>
<xs:simpleTyp e>
<xs:restricti on base="xs:token" >
<xs:pattern value="\p{IsBas icLatin}*"/>
</xs:restriction>
</xs:simpleType>
</xs:list>
</xs:simpleType>
</xs:element>
</xs:sequence>
<xs:attribute name="RULENAME" type="xs:NMTOKE N"/>
</xs:complexType>
</xs:element>
<xs:element name="PROTOHEAD ER">
<xs:complexType >
<xs:attribute name="PROTOHEAD ERNAME" type="xs:token"/>
<xs:attribute name="ENTRYSEQN UM" type="xs:positi veInteger"/>
</xs:complexType>
</xs:element>
<xs:element name="PROTODEF" >
<xs:complexType >
<xs:sequence>
<xs:element name="PROTOTABL E">
<xs:complexType >
<xs:sequence>
<xs:element ref="myTNS:PROT OHEADER" maxOccurs="unbo unded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element ref="myTNS:PROT OHEADERENTRY" maxOccurs="unbo unded"/>
<xs:element ref="myTNS:ABNF RULE" maxOccurs="unbo unded"/>
<xs:element ref="myTNS:ABNF BASIC" maxOccurs="unbo unded"/>
</xs:sequence>
<xs:attribute name="PROTOCOLN AME" type="xs:token"/>
<xs:attribute name="PROJECTNA ME" type="xs:string "/>
</xs:complexType>
<xs:key name="KEYHEADER NUM">
<xs:selector xpath="myTNS:PR OTOHEADERENTRY"/>
<xs:field xpath="@HEADERS EQNUM"/>
</xs:key>
<xs:key name="KEYHEADER NAME">
<xs:selector xpath="./myTNS:PROTOHEAD ERENTRY"/>
<xs:field xpath="@NAME"/>
</xs:key>
<xs:keyref name="KEYENTRYN UM" refer="myTNS:KE YHEADERNUM">
<xs:selector xpath="./myTNS:PROTOHEAD ER"/>
<xs:field xpath="@ENTRYSE QNUM"/>
</xs:keyref>
</xs:element>
</xs:schema>

=============== =============== =============== =============== ===

--
Stan Kitsis
Program Manager, XML Technologies
Microsoft Corporation

This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
"shyam" <sh********@gma il.com> wrote in message
news:11******** **************@ i40g2000cwc.goo glegroups.com.. .

Stan Kitsis [MSFT] wrote:
You need to declare a target namespace in your schema and use it in the
xpath. In the example below I used myTNS as the prefix for your target
namespace.

<xs:schema ... targetNamespace ="myTargetNames pace"
xmlns:myTNS="my TargetNamespace " xmlns="myTarget Namespace"...>

....

<xs:selector xpath="./myTNS:PROTOHEAD ERENTRY"/>
<xs:field xpath="@HEADERS EQNUM"/>


Thanks Stan This has worked ,
however the keyref thing is still not working
I have defined a keyref
<xs:keyref name="KEYENTRYN UM" refer="myTNS:KE YHEADERNUM">
<xs:selector xpath="./myTNS:PROTOHEAD ER"/>
<xs:field xpath="@ENTRYSE QNUM"/>
</xs:keyref>

which refers to the earlier xs:key

So i want is that the ENTRYSEQNUM attribute of PROTOHEADER element
should refer to a unique and existing HEADERSEQNUM attribute of
myTNS:PROTOHEAD ERENTRY element

I guess I am again missing some minor trick and would graetly
appretiate if you could help out

Thanks
Shyam
...

--
Stan Kitsis
Program Manager, XML Technologies
Microsoft Corporation

This posting is provided "AS IS" with no warranties, and confers no
rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
"shyam" <sh********@gma il.com> wrote in message
news:11******** **************@ u72g2000cwu.goo glegroups.com.. .
>
> Martin Honnen wrote:
>> shyam wrote:
>>
>>
>> > <xs:attribute name="HEADERSEQ NUM" type="xs:positi veInteger"/>
>>
>>
>> > <xs:selector xpath="./PROTOHEADERENTR Y"/>
>> > <xs:field xpath="HEADERSE QNUM"/>
>>
>> XPath to select an attribute is @attributeName so you probably want
>> <xs:field xpath="@HEADERS EQNUM"/>
>
> Even with this its dosent work
>
>>
>> --
>>
>> Martin Honnen
>> http://JavaScript.FAQTs.com/
>


Jun 20 '06 #7
Stan Kitsis [MSFT] wrote:
Shyam,

Can you post your schema?
=============== =============== =============== =============== ==
<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns="http://www.w3schools.c om" xmlns:myTNS="MY TARGET"
targetNamespace ="MYTARGET" elementFormDefa ult="qualified" >
<xs:element name="PROTOHEAD ERENTRY">
<xs:complexType >
<xs:sequence>
<xs:element name="ABNFGRAMM ER">
<xs:complexType >
<xs:sequence>
<xs:element name="ABNFRULES ET">
<xs:simpleTyp e>
<xs:list>
<xs:simpleTyp e>
<xs:restricti on base="xs:token" >
<xs:pattern value="\p{IsBas icLatin}*"/>
</xs:restriction>
</xs:simpleType>
</xs:list>
</xs:simpleType>
</xs:element>
<xs:element name="ABNFEXCEP TION" maxOccurs="unbo unded">
<xs:complexType >
<xs:attribute name="RULENAME" type="xs:token"/>
<xs:attribute name="EXCEPTION ">
<xs:simpleTyp e>
<xs:restricti on base="xs:token" >
<xs:enumerati on value="MANDATOR Y"/>
<xs:enumerati on value="IGNORESE Q"/>
<xs:enumerati on value="IGNORECA SE"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="NAME" type="xs:token"/>
<xs:attribute name="HEADERSEQ NUM" type="xs:positi veInteger"/>
</xs:complexType>
</xs:element>
<xs:element name="ABNFBASIC ">
<xs:complexType >
<xs:sequence>
<xs:element name="RULESTRIN G" type="xs:string "/>
</xs:sequence>
<xs:attribute name="ABNFBASIC NAME" type="xs:NMTOKE N"/>
</xs:complexType>
</xs:element>
<xs:element name="ABNFRULE" >
<xs:complexType >
<xs:sequence>
<xs:element name="RULESTRIN G">
<xs:simpleTyp e>
<xs:list>
<xs:simpleTyp e>
<xs:restricti on base="xs:token" >
<xs:pattern value="\p{IsBas icLatin}*"/>
</xs:restriction>
</xs:simpleType>
</xs:list>
</xs:simpleType>
</xs:element>
</xs:sequence>
<xs:attribute name="RULENAME" type="xs:NMTOKE N"/>
</xs:complexType>
</xs:element>
<xs:element name="PROTOHEAD ER">
<xs:complexType >
<xs:attribute name="PROTOHEAD ERNAME" type="xs:token"/>
<xs:attribute name="ENTRYSEQN UM" type="xs:positi veInteger"/>
</xs:complexType>
</xs:element>
<xs:element name="PROTODEF" >
<xs:complexType >
<xs:sequence>
<xs:element name="PROTOTABL E">
<xs:complexType >
<xs:sequence>
<xs:element ref="myTNS:PROT OHEADER" maxOccurs="unbo unded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element ref="myTNS:PROT OHEADERENTRY" maxOccurs="unbo unded"/>
<xs:element ref="myTNS:ABNF RULE" maxOccurs="unbo unded"/>
<xs:element ref="myTNS:ABNF BASIC" maxOccurs="unbo unded"/>
</xs:sequence>
<xs:attribute name="PROTOCOLN AME" type="xs:token"/>
<xs:attribute name="PROJECTNA ME" type="xs:string "/>
</xs:complexType>
<xs:key name="KEYHEADER NUM">
<xs:selector xpath="myTNS:PR OTOHEADERENTRY"/>
<xs:field xpath="@HEADERS EQNUM"/>
</xs:key>
<xs:key name="KEYHEADER NAME">
<xs:selector xpath="./myTNS:PROTOHEAD ERENTRY"/>
<xs:field xpath="@NAME"/>
</xs:key>
<xs:keyref name="KEYENTRYN UM" refer="myTNS:KE YHEADERNUM">
<xs:selector xpath="./myTNS:PROTOHEAD ER"/>
<xs:field xpath="@ENTRYSE QNUM"/>
</xs:keyref>
</xs:element>
</xs:schema>

=============== =============== =============== =============== ===

--
Stan Kitsis
Program Manager, XML Technologies
Microsoft Corporation

This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
"shyam" <sh********@gma il.com> wrote in message
news:11******** **************@ i40g2000cwc.goo glegroups.com.. .

Stan Kitsis [MSFT] wrote:
You need to declare a target namespace in your schema and use it in the
xpath. In the example below I used myTNS as the prefix for your target
namespace.

<xs:schema ... targetNamespace ="myTargetNames pace"
xmlns:myTNS="my TargetNamespace " xmlns="myTarget Namespace"...>

....

<xs:selector xpath="./myTNS:PROTOHEAD ERENTRY"/>
<xs:field xpath="@HEADERS EQNUM"/>


Thanks Stan This has worked ,
however the keyref thing is still not working
I have defined a keyref
<xs:keyref name="KEYENTRYN UM" refer="myTNS:KE YHEADERNUM">
<xs:selector xpath="./myTNS:PROTOHEAD ER"/>
<xs:field xpath="@ENTRYSE QNUM"/>
</xs:keyref>

which refers to the earlier xs:key

So i want is that the ENTRYSEQNUM attribute of PROTOHEADER element
should refer to a unique and existing HEADERSEQNUM attribute of
myTNS:PROTOHEAD ERENTRY element

I guess I am again missing some minor trick and would graetly
appretiate if you could help out

Thanks
Shyam
...

--
Stan Kitsis
Program Manager, XML Technologies
Microsoft Corporation

This posting is provided "AS IS" with no warranties, and confers no
rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
"shyam" <sh********@gma il.com> wrote in message
news:11******** **************@ u72g2000cwu.goo glegroups.com.. .
>
> Martin Honnen wrote:
>> shyam wrote:
>>
>>
>> > <xs:attribute name="HEADERSEQ NUM" type="xs:positi veInteger"/>
>>
>>
>> > <xs:selector xpath="./PROTOHEADERENTR Y"/>
>> > <xs:field xpath="HEADERSE QNUM"/>
>>
>> XPath to select an attribute is @attributeName so you probably want
>> <xs:field xpath="@HEADERS EQNUM"/>
>
> Even with this its dosent work
>
>>
>> --
>>
>> Martin Honnen
>> http://JavaScript.FAQTs.com/
>


Jun 20 '06 #8
Hi,

From your schema, it looks like PROTOHEADER is a grandchild of PROTODEF,
so you should use TWO slashes in your keyref selector, as in:

.//myTNS:PROTOHEAD ER

or you could use a more precise path:

myTNS:PROTOTABL E/myTNS:PROTOHEAD ER

Hope that helps,
Priscilla
----------------------------------
Priscilla Walmsley
Author, Definitive XML Schema
XQuery
http://www.datypic.com
----------------------------------

*** Sent via Developersdex http://www.developersdex.com ***
Jun 21 '06 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1844
by: Bruce | last post by:
I have designed a form (Project Form) using a Select query and it works just fine. I created another very similar form (Promotional Form) that uses the same table with another select query - very similar fields. Unfortunately this form will not allow me to enter new data. I've checked all the relevant settings in the properties dialog box and they're all good. The query is basically the same (only a few fields and one filter is...
1
3017
by: SC | last post by:
I'm developing a site that may eventually have a very large database of users (hopefully, but who knows). It will be a community website where users can search each other (think Friendster, Classmates, every dating site out there, etc.). Often there will be queries with multiple joins and sometimes may include a few fulltext searches. Each page of results will have a limited number of results displayed (obviously). As I understand it,...
1
1558
by: jason.teen | last post by:
Hi, Just wondering if you can mix values in a combo box. I want to fill it up with some query such as: select name from tblDetails; and that may produce a combo box with: "John" "Peter"
1
1444
by: AJ | last post by:
Folllowing on from a previous post, i have created a stored query as follows. SELECT c.ID, c.Company_Name, p., 1 As QueryNbr FROM (Company AS c LEFT JOIN Sale AS s ON c.ID = s.Company_ID) LEFT JOIN Package AS p ON s.Package_ID = p.ID WHERE c.Category = 'EXH'
0
2301
by: cfaheybestpitch | last post by:
Hi There, I have designed a DTS package which extracts a query into an excel file. It uses a query that changes dynamically based on user preferences, so I have used the dynamic property SourceSQLStatement to feed the exact query into the DTS package. The issue, however, is that the query can be run a multitude of ways, and return a different number of columns each time. On one run, the query could return a 3 column record-set, on...
1
2151
by: Bob | last post by:
Hi all, I want to incorporate several types of different rankings to a Make Table Query I have then use the rank for calculations. I want to calculate rankings based on how much each client has in a portfolio, so lets say there are 4 portfolios, so each client would have 4 rankings, dependant upon how much they had in each portfolio compared to their peers. I then want to use each of those rankings to run some calculations. I want all...
0
1438
by: daldridge | last post by:
I don't know if what I want to do is possible or not, but I'd like to have an xs:key in my schema that constrains attributes directly in a document, as well as those in another document, included in the first. Here's an example of what I'm trying to say: FooList.xsd: ================ <?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xi="http://www.w3.org/2001/XInclude"
3
4170
by: getajaysharma | last post by:
Hi All I am having problem. i want to compare the results of Stored Procedure & SQL Query. Can any one tell me how can i achive this. Please expalin with example. Regards Ajay Sharma
3
5485
by: sshafer1 | last post by:
Hi. I have a query that I would like to run periodically to drop the data in an existing table and re-write the table with the query information. However, when I do this, some of my field formatting for calculated query fields are dropped. For example. In the query, the FIELD1= $4,500 but when the make table query is run, the FIELD1 = 4500.25 In the query, I am using (0) decimals.
0
9458
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9187
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8192
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6040
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4555
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4818
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3266
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2734
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2184
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.