Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Namespace problem ?

 
Priyadarshini Anand
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic