Convert 'include' to 'import'

This should cover W3C XML Schema, Relax NG and DTD related problems.
Posts: 1
Joined: Fri Oct 22, 2010 3:29 am

Convert 'include' to 'import'

Post by bobm » Fri Oct 22, 2010 3:35 am

I would like to change my include statements to imports, I'm aware that I'll need to go into the imported schemas and change the namespaces (which is what I'm trying to do).

Does anyone know of a way to do a transformation where the 'included' attributes, elements, types will get prefixed with a namespace?

for example:

<xs:attributeGroup ref="OTA_PayloadStdAttributes"/>

would become:

<xs:attributeGroup ref="ota:OTA_PayloadStdAttributes"/>

when I change:

<xs:schema xmlns:xs="" xmlns="" >

to be xmlns:ota