[Servingxml-help] Re: Schema location attribute
Brought to you by:
danielaparker
From: Daniel P. <dan...@sy...> - 2006-01-23 01:59:07
|
Anton, Thanks for reporting this. This has been fixed in version 0.3.4, see the books example. -- Daniel ----- Original Message ----- From: "Anton Melumad" <ame...@ya...> To: <dan...@us...> Sent: Thursday, January 19, 2006 3:13 AM Subject: Schema location attribute > Daniel, > > First of all, thanks for the ServingXML - great work, seems to be very > flexible > and powerful. > > I have one question though. What are the correct instructions that I > should > put in resources*.xml in order to have the xsi:schemaLocation attribute in > the > root element of my output XML? I.e. I need to produce an XML like that: > > <?xml version="1.0" encoding="UTF-8"?> > <myNamespace:tag xmlns:myNamespace="url1" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="url2"> > ... > </myNamespace:tag> > > I put the xmlns:myNamespace="url1" attribute in the sx:resources element > and > the xmlns:xsi and xsi:schemaLocation atributes into my record mapping > section, > i.e. > > <sx:resources xmlns:sx="http://www.servingxml.com/core" > xmlns:css="url1"> > > > <sx:recordMapping id="recordsToXmlMapping"> > <myNamespace:tag xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="url2"> > > I get the following output: > > xmlns:ymNamespace="url1" xmlns:xmlns="url1" xmlns:xsi="url1" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="url2" > > I am using Serving XML version 0.3.3. > > Thank you in advance, > Anton > > > > ___________________________________________________________ > To help you stay safe and secure online, we've developed the all new > Yahoo! Security Centre. http://uk.security.yahoo.com > |