Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
| Search | Today's Posts | Mark Forums Read
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old March 16th, 2006, 09:44 PM
Registered User
 
Join Date: Mar 2006
Location: Singapore, Singapore, Singapore.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Can display output as Element name

Hi i need some help...

i have xml file like

<Requests>
<Request name="List-ProductLine-ByName" specialAttention ="List for ProductLine ByName is not Case sensitive" >
<List>
<ProductLine>
<ByName/>
</ProductLine>
</List>
</Request>

<Request name="Detail-Datafile">
<Detail>
<Datafile/>
</Detail>
</Request>
</Requests>

i want output like table shown below there are 4 colunms.

Module Function RequestXml SpecialAttention


In Module column if it is List want to display List
if it is detail want to display Detail. see above xml After <request> tag have that tag like <list> or <detail>

In RequestXMl column i want to display as it is like
<Request name="Detail-Datafile">
<Detail>
<Datafile/>
</Detail>
</Request>

how can i do this. Is it possible? Can anyone help me out this.

Thanks & Regards
Haresh..

  #2 (permalink)  
Old March 17th, 2006, 06:05 AM
mhkay's Avatar
Wrox Author
Points: 18,487, Level: 59
Points: 18,487, Level: 59 Points: 18,487, Level: 59 Points: 18,487, Level: 59
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2004
Location: Reading, Berks, United Kingdom.
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

Please try to describe your requirements more clearly. I have no idea what your input really looks like, and I have no idea what you want to go in each of the four columns of your table.

Please also try to describe how you have attempted to solve the problem and why you are having difficulties.

Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference
  #3 (permalink)  
Old March 22nd, 2006, 03:19 AM
Registered User
 
Join Date: Mar 2006
Location: Singapore, Singapore, Singapore.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for ur reply...i got the solution..

Haresh



Similar Threads
Thread Thread Starter Forum Replies Last Post
div element in array won't display onload linus9 BOOK: Beginning JavaScript 3rd Ed. ISBN: 978-0-470-05151-1 5 November 6th, 2008 02:08 AM
remove duplicate text in an output html element mrame XSLT 1 June 20th, 2008 01:41 AM
Copy source-element to output tree der_bAUer XSLT 2 June 9th, 2006 08:17 AM
xsl:element not on its own line in output EstherMStrom XSLT 3 February 26th, 2005 06:08 AM
display element (layer) over java applet mateenmohd Java GUI 0 January 6th, 2004 12:39 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.