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 XSLT is not capturing values from XML Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "XSLT is not capturing values from XML " Watch "XSLT is not capturing values from XML " New topic
Author

XSLT is not capturing values from XML

nirjari patel
Ranch Hand

Joined: Apr 23, 2009
Posts: 374
I am trying to capture values from above XML file using XSLT below.
The values are not being captured. Why is that ? Whats wrong in here ?

Thanks
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18651
    
    8

Would I be correct in guessing that your Layout element is selected correctly, but none of the other elements you tried to select were shown? If so, then look carefully at how your select attribute differs in that case from all the others.

If not, then tell us the details about which values aren't appearing.
nirjari patel
Ranch Hand

Joined: Apr 23, 2009
Posts: 374
I am just new to XSLT. I don't understand your generic suggestion. Please tell me how to debug clearly and wht should be next step ?

Thanks
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18651
    
    8

Next step? No, you're right, it's necessary to debug clearly. That should be the first step. To do that, you need a clear description of the problem. So far we don't have such a thing. All we have is a vague statement "The values are not being captured". As I already suggested, you should provide us with details about what that means.
nirjari patel
Ranch Hand

Joined: Apr 23, 2009
Posts: 374
Thanks. I have to get some basics of XSLT first. Then I will be able to better understand this.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: XSLT is not capturing values from XML