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

Reply via email to