You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-users@xalan.apache.org by Anjana Sudhakar <an...@yahoo.com> on 2008/07/10 19:34:03 UTC
Xalan executable gives wrong output
I am using Xalan executable to do a trasformation. I give in the xml and xsl files, and the output I get is not the expected xml file. The output is a string of all element values in the input xml without any tags. It does not give any errors.
I am new to Xalan - any help is appreciated.
Thanks,
Anjsud
Re: Xalan executable gives wrong output
Posted by Anjana Sudhakar <an...@yahoo.com>.
It turned out to be a namespace issue, I was able to resolve it. Thanks.
--- On Fri, 7/11/08, David Bertoni <db...@apache.org> wrote:
From: David Bertoni <db...@apache.org>
Subject: Re: Xalan executable gives wrong output
To: xalan-c-users@xml.apache.org
Date: Friday, July 11, 2008, 7:21 PM
Anjana Sudhakar wrote:
> I am using Xalan executable to do a trasformation. I give in the xml and
> xsl files, and the output I get is not the expected xml file. The output
> is a string of all element values in the input xml without any tags. It
> does not give any errors.
That means the default rules are matched, which simply copies all text
nodes and attribute values to the result tree.
>
> I am new to Xalan - any help is appreciated.
Without seeing a stylesheet or source document, it's difficult to guess
why you are not getting the expected result. Usually, when template
rules don't match, it's a namespace problem.
Perhaps you are transforming an XHTML document? The XHTML DTD adds a
default namespace, which will affect how you need to define the match
patterns in your templates.
I suggest you check out the XSLT FAQ and consider subscribing to the
Mulberry Technologies XSL list, which is the best forum for general
XSL(T) questions.
Dave
Re: Xalan executable gives wrong output
Posted by David Bertoni <db...@apache.org>.
Anjana Sudhakar wrote:
> I am using Xalan executable to do a trasformation. I give in the xml and
> xsl files, and the output I get is not the expected xml file. The output
> is a string of all element values in the input xml without any tags. It
> does not give any errors.
That means the default rules are matched, which simply copies all text
nodes and attribute values to the result tree.
>
> I am new to Xalan - any help is appreciated.
Without seeing a stylesheet or source document, it's difficult to guess
why you are not getting the expected result. Usually, when template
rules don't match, it's a namespace problem.
Perhaps you are transforming an XHTML document? The XHTML DTD adds a
default namespace, which will affect how you need to define the match
patterns in your templates.
I suggest you check out the XSLT FAQ and consider subscribing to the
Mulberry Technologies XSL list, which is the best forum for general
XSL(T) questions.
Dave