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

Similar Threads

XSL question 5
How to change key name in json file with python 0
XSL Calculation 0
xsl usage question 2
XSL Grouping 0
XSL : Slow 0
XSL node as string 1
Controlling whitespace in XSL output - tutorial anywhere? 6

Members online

Forum statistics

Threads
473,754
Messages
2,569,525
Members
44,997
Latest member
mileyka

Latest Threads

Top