Re: [xsl] xml element order

Subject: Re: [xsl] xml element order
From: Mitch Amiano <mitch.amiano@xxxxxxxxxxxxxxxxxxxx>
Date: Mon, 28 Oct 2002 10:24:31 -0500
Use SGML :-) (Sorry, couldn't resist!)

You can use well-formed XML: don't use a DTD.

You can use the (name|area)* construct in the content model to make
the name and area elements repeated and optional.

Presuming there isn't something holding you back, you can use a schema.

You can also filter the XML input through another program to put it into the expected order.

Or you can have a polite conversation with those who control the automated program and see if they will fix the problem.

- Mitch

Laura Jenkins wrote:

Hello people,
I have an xml whose DTD is as follows..

The University Element has a sequence of name, and area elements.Which would mean that these elements have to appear in the XML in the same order that it is in the DTD.
This is causing a problem for us because we are aware of the elements which we want but have no control over the order of the elements in the xml file.Since it is an automated process that ends in a transformed output file using xslt,every time we end up with an error saying the xml file is not valid.. Is there any way of making the order of the elements FLEXIBLE..
so that for the same DTD, the elements may appear as..

my name
My area


My area my name

Thanks very much

Get a speedy connection with MSN Broadband. Join now!

XSL-List info and archive:

XSL-List info and archive:

Current Thread