Re: [xsl] re-ordering an instance to match a schema

Subject: Re: [xsl] re-ordering an instance to match a schema
From: S Woodside <sbwoodside@xxxxxxxxx>
Date: Wed, 14 May 2003 15:07:02 -0400
No. I considered two, the resume-xml on sourceforge.net and the HR-XML. I decided to go with resume-xml because it's much simpler.

However, the end-goal of the project is to be schema agnostic. Any RNG (relax ng) schema should work with the system. So, HR-XML would be part of that (since you can convert DTDs and W3C XML Schemas into RNG with various tools (I used rngconv).

simon

On Wednesday, May 14, 2003, at 03:00 PM, Ed Dodds wrote:

Are you working with the HR-XML.org resume xml standards?

Ed Dodds

---- Original message ----
Date: Wed, 14 May 2003 14:32:37 -0400
From: S Woodside <sbwoodside@xxxxxxxxx>
Subject: [xsl] re-ordering an instance to match a schema
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx

Hi there,

Some of you might remember that I was writing a small suite
of XSLT to
do roundtripping of XML instance data to HTML forms and back
again,
based on RNG (relax NG) schemas to define the forms. Well, I
actually
made some progress and have something that kinda-sorta works
now. One
issue though is that my code isn't smart enough to insert
new elements
in the "right" order*.

* where the "right" order is the order that things appear in
the schema

The reason that's important is that xslt I've seen (and
written ...)
often assumes that the instance XML will be in a certain
order and
outputs in that order too, so that in this case with resumes
I get job
history listed before the name and address ;-)

Is there XSLT out there, that I can use, that will take an
instance and
a schema and re-order the instance to match the schema? Does
that make
sense?

TIA,

simon

PS I still plan to release the source as open source when
if/when it's
ready

--
www.simonwoodside.com -- 99% Devil, 1% Angel


XSL-List info and archive:
http://www.mulberrytech.com/xsl/xsl-list




-- anti-spam: do not post this address publicly www.simonwoodside.com -- 99% Devil, 1% Angel


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



Current Thread