xsl/key question

S

Stefan Slapeta

Hi,

I would to like to have a schema for the following structure in XML and
have no idea how to achieve this:

<root_element>

<!-- included from file one -->
<container name="A">
<container_element name="ELEMENT_1" />
</container>

<!-- included from file two -->
<container name="A">
<container_element name="ELEMENT_2" />
</container>

</root_element>


The problem is that the containers should be read from different files
(that's another question: is there something like an "include" directive
in XML?) because this constellation (what is in the container) is put
together dynamically.

What I want to achieve is to say "over all containers with name X the
element names shall be unique" but I couldn't found a solution for that.

Maybe some of you can help me, I would also appreciate to see better
alternatives for the structure to solve my problem.

Cheers,

Stefan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,240
Members
46,830
Latest member
HeleneMull

Latest Threads

Top