wood burning stoves 2.0*
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 Murach's Java Servlets and JSP this week in the Servlets forum!
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:

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Namespace problem ?
 
Similar Threads
distinct child nodes ??
problem in retrieving attribute value
hi, why my xsl file did not work, can anybody help me a little bit
XML Transformation
Java Web Services 2