Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: XML Spy buffer data...

From: "Daniel Bass" <DanielBass TAKE at OUT CAPS WORDS Postmaster.co.uk>
To: NULL
Date: 3/2/2004 12:20:00 PM
Thanks for your response

What I don't understand is why XMLSpy">XMLSpy can make them "two completely
different documents" by simply verifing a message against a XSD.
I tried the local-name() method but it didn't work, the mapping appeared to
return a match, but then none of the data that is scanned within the
template returns valid branches...

Oh, it's so confuzzling. **8-$

Thanks again
Dan.

"Oleg Tkachenko [MVP]" <oleg@NO!SPAM!PLEASEtkachenko.com> wrote in message
news:e%23yHDVEAEHA.916@t......
Daniel Bass wrote:

> message before XMLSpy">XMLSpy'd.
>
> < Abc >
>      < SubInnerDef >
>           < InnerGhi value="Test" />
>      < SubIinnerDef >
> </Abc>
>
>
>
> message after XSD was added via XMLSpy">XMLSpy
>
> < Abc
>           xmlns="http://www.wbf.org/xml/b2mml-v02"

These are two completely different documents. Namespace is like second
name, these two Abc elements have nothing but local name part in common.

> the second XML snippet fails in the <xsl:template match='Abc'> because of
> the namespace and other "attributes".
>
> Is there a way to write the XSL so that it work for both cases?
Yes, but that's poor solution.
You can use namespace-unaware name tests:

<xsl:template match="*[local-name()='Abc']">

-- 
Oleg Tkachenko [XML MVP, XmlInsider]
http://blog.tkachenko.com




transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent