aspose 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

Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Namespace problem ?" Watch "Namespace problem ?" New topic

Namespace problem ?

Priyadarshini Anand

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.


Madhav Reply is as follows :


The output will be something like this:

I agree. Here's the link:
subject: Namespace problem ?