[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Replacing DTD reference with xsd reference

Subject: Replacing DTD reference with xsd reference
From: Cams Ismael <Ismael.Cams@xxxxxxxxxxx>
Date: Wed, 2 Apr 2003 09:39:21 +0200
reference in xsd
Hello all,

can somebody provide me some help with the following. I have thousands of
files that conform to a DTD. Now I have written a schema for these files.
Therefore a transformation is needed for all the files.

So I have:

<?xml version="1.0"?>
<!DOCTYPE trap SYSTEM "./trap.dtd">

<trap>
  ....
</trap>

The result should be:

<?xml version="1.0"?>
<trap xmlns="mynamespace.uri" 
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="mynamespace.uri trap.xsd">
   ....
</trap>

Because copy-of select copies also the namespace, this is not an option for
me (because I want to transform from no namespace into mynamespace.uri). Is
there a good way to do this with XSLT, or should I better use a script for
transforming my xml files ?

Kind regards,
Ismaël


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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.