[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Hi Chris,
You are generating s_level in no namespace.
Your Bitstream element belongs to MCTF namespace and you have MCTF as default namespace.
As you generate the s_level in no namespace and the current default namespace is MCTF then the namespace must be reset to no namespace in order to output the s_level element.
poppe chris wrote:
Re: [xsl] Problem namespaces Xalan Java 2.6.0
Subject: Re: [xsl] Problem namespaces Xalan Java 2.6.0 From: George Cristian Bina <george@xxxxxxx> Date: Tue, 18 May 2004 11:05:17 +0300 |
Hi Chris,
xsl file, line 22-23: <xsl:template name="slevel" match="m:s_level"> <s_level>
You are generating s_level in no namespace.
result, line 2 <Bitstream xmlns="MCTF"
Your Bitstream element belongs to MCTF namespace and you have MCTF as default namespace.
result, line 48 <s_level xmlns=""
As you generate the s_level in no namespace and the current default namespace is MCTF then the namespace must be reset to no namespace in order to output the s_level element.
Hope that helps, George ----------------------------------------------- George Cristian Bina <oXygen/> XML Editor - http://www.oxygenxml.com
poppe chris wrote:
Hello,
i recently upgraded my XSLT processor from xalan-J 2.2 to 2.6,
now im facing a peculiar problem,
when i run my xslt stylesheet on a xml document the processor adds stuff like:
- <s_level xmlns="" xmlns:xalan="http://xml.apache.org/xalan" xmlns:m="MCTF">
<firsthex>1</firsthex>
<sechex>0</sechex>
</s_level>
where the former element was: - <s_level > <firsthex>0</firsthex> <sechex>0</sechex> </s_level>
Ive managed to delete the xmlns:xalan and xmlns:m parts with exclude-result-prefixes="xalan m"
but the 'xmlns=""' part really causes problems for me and i cant see why its there and how it can be avoided? (when i used the older version of Xalan-j it wasnt there)
here are links to Xml, the xslt and the output xml
http://www10.brinkster.com/cpoppe/misc/foreman.xml http://www10.brinkster.com/cpoppe/misc/MCTFspatialleke.xsl http://www10.brinkster.com/cpoppe/misc/foreman_spatial.xml
hope anyone can help me, sincerely, Chris
_________________________________________________________________
Test een digitale camera 14 dagen gratis http://opproef.msn.be/product/product.html?nr=13
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Problem namespaces Xalan Java, poppe chris | Thread | [xsl] DOCTYPE with "doctype-public", Daniel Joshua |
Re: [xsl] killing xslt, Jirka Kosek | Date | RE: [xsl] killing xslt, David . Pawson |
Month |
Keywords