File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes XML and Related Technologies and the fly likes Namespace problem ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Namespace problem ?" Watch "Namespace problem ?" New topic
Author

Namespace problem ?

Priyadarshini Anand
Greenhorn

Joined: Jun 02, 2004
Posts: 22
Hello Madhav & Balaji,

Here is the XML and XSL to display that XML, I can display XML only if I remove xmlns attributes and also the prefixes ns1,ns2,ns3��

Point to be noted :

I think ,I should not declare the namespace in stylesheet because :

There are many TestCaseReport nodes in TestReport because of that reason i am using for-each block in xsl. so, in each TestCaseReport, we have many different namespaces and also different prefix ns1,ns4, ns7...
Morever, we have many xml files,that are displayed using same xsl located at one place.Each xml has different namespaces and different number of TestCaseReport nodes and different prefixes ns,ns2,ns4...

Though, whatever the namespace and prefix, i just want to display values of nodes and attributes.So, how i will arrange the things dynamically.I am also attaching madhav reply I got last time at the end which is very relevent to the problem.



XSL :



Madhav Reply is as follows :

XSL :


The output will be something like this:

 
wood burning stoves
 
subject: Namespace problem ?