Subject: [xsl] XSL for element containing mixed content. From: Sandeep Deshpande <san25872@xxxxxxxxx> Date: Thu, 6 Sep 2001 21:48:26 -0700 (PDT) |
How do I write XSL for following section of XML file. <directory> Hi I am in a directory. <subdirectory> Hi I am in a subdirectory. <file> Hi I am in file. </file> </subdirectory> </Directory> In the above case if I make a template for 'directory' then I can write '<xsl:value-of select ".">', for directory template. But this prints all the data which is present in the child elements also and then if I create a template for 'subdirectory' and 'file' then the data gets repeated.Is there any way by which we can tackle an element which contains '#pcdata' and a child element ( where each child element has their own template) ? - Sandeep __________________________________________________ Do You Yahoo!? Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger http://im.yahoo.com XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] IE6, Chris Bayes | Thread | Re: [xsl] XSL for element containin, Joerg Pietschmann |
Re: [xsl] XSLT browser support, Rafael 'Dido' Sevill | Date | [xsl] Re:Grouping by element, Yang |
Month |