Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - How do I prevent the tranform from moving namespaces? >Thread Next - Re: How do I prevent the tranform from moving namespaces? Re: How do I prevent the tranform from moving namespaces?To: NULL Date: 5/20/2008 2:22:00 PM
Greg Collins wrote:
> So for example, I have:
>
> <xsl:template name="foo">
> <pkg:part pkg:name="/docProps/custom.xml"
> pkg:contentType="application/vnd.openxmlformats-officedocument.custom-properties+xml"
> pkg:padding="256">
> <pkg:xmlData>
> <Properties
> xmlns="http://schemas.openxmlformats.org/officeDocument/2006/custom-properties"
> xmlns:vt="http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes">
>
> <property fmtid="{{D5CDD505-2E9C-101B-9397-08002B2CF9AE}}" pid="2"
> name="Customer">
> <vt:lpwstr>
> <xsl:value-of select="/my:myFields/my:Project"/>
> </vt:lpwstr>
> </property>
> </Properties>
> </pkg:xmlData>
> </pkg:part>
> </xsl:template>
>
>
> But what I get out of it is:
>
> <pkg:part pkg:name="/docProps/custom.xml"
> pkg:contentType="application/vnd.openxmlformats-officedocument.custom-properties+xml"
> pkg:padding="256">
> <pkg:xmlData>
> <Properties
> xmlns="http://schemas.openxmlformats.org/officeDocument/2006/custom-properties">
>
> <property fmtid="{D5CDD505-2E9C-101B-9397-08002B2CF9AE}" pid="2"
> name="Customer" xmlns="">
^^^^^^^^
I kind of doubt that the above template creates this output but if it
does then there is a bug in the XSLT processor or XML parser you use.
But an xmlns="" usually indicates that there is a problem in the
stylesheet and not with the XSLT processor.
Can you post a minimal but complete XML input and XSLT stylesheet and
tell us which XSLT processor you use?
--
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
