C
Clive
Hi,
I have an xml document with customer data. A test example starts
like this:
<?xml version="1.0" encoding="UTF-8"?>
<customer-info xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="cust-05.xsd">
<!-- Contain all properties of the customer in document element
-->
<customer cust-number="38273-815">
<cust-name title="Mr.">
<first>Clive</first>
<middle>Robert</middle>
<last>Long</last>
etc.
I have another xml document with a completely different structure:
<?xml version="1.0" encoding="UTF-8"?>
<occupation-list>
<occupation d="" tv="1" r="" s="" i="" p="" descr="ARCHITECTURE,
ENGINEERING, AND SURVEYING">arch-eng-surv</occupation>
<occupation d="" tv="2" r="" s="" i="" p="" descr="MATHEMATICS AND
PHYSICAL SCIENCES">math-phys</occupation>
etc.
Now I have an xslt that processes the data in the first xml document
but want to "refer" to the second xml document so that when the
occupations in the first doc are "looked up" in the second, I can
"read" the values of the attributes from the second document (d, i,
tv, etc ...) and process them. Follow me?
I want to keep the two documents and their structure separate so
they can more easily be updated.
I can't work out how to do this? Can anyone give me a hint?
Thanks
Clive
I have an xml document with customer data. A test example starts
like this:
<?xml version="1.0" encoding="UTF-8"?>
<customer-info xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="cust-05.xsd">
<!-- Contain all properties of the customer in document element
-->
<customer cust-number="38273-815">
<cust-name title="Mr.">
<first>Clive</first>
<middle>Robert</middle>
<last>Long</last>
etc.
I have another xml document with a completely different structure:
<?xml version="1.0" encoding="UTF-8"?>
<occupation-list>
<occupation d="" tv="1" r="" s="" i="" p="" descr="ARCHITECTURE,
ENGINEERING, AND SURVEYING">arch-eng-surv</occupation>
<occupation d="" tv="2" r="" s="" i="" p="" descr="MATHEMATICS AND
PHYSICAL SCIENCES">math-phys</occupation>
etc.
Now I have an xslt that processes the data in the first xml document
but want to "refer" to the second xml document so that when the
occupations in the first doc are "looked up" in the second, I can
"read" the values of the attributes from the second document (d, i,
tv, etc ...) and process them. Follow me?
I want to keep the two documents and their structure separate so
they can more easily be updated.
I can't work out how to do this? Can anyone give me a hint?
Thanks
Clive