Convert 'include' to 'import'

This should cover W3C XML Schema, Relax NG and DTD related problems.
bobm
Posts: 1

Convert 'include' to 'import'

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="http://www.w3.org/2001/XMLSchema" xmlns="http://www.opentravel.org/OTA/2003/05" >

to be xmlns:ota

Thanks,
bob

Return to “XML Schemas”

Who is online

Users browsing this forum: No registered users and 0 guests