Subject: [xsl] identifying elements by contents of an attribute From: "Daniel Brauer" <daniel.brauer@xxxxxxxxxxxxx> Date: Fri, 28 Mar 2003 08:48:54 +0100 |
Hi, I believe this is very easy, but I just can't figure out how to do it. I need to identify elements according to the value of a specific attribute. The XML document looks like this: <?xml version="1.0" encoding="ISO-8859-1"?> <INPUT> <VERSION Type="Key"> 1.0 </VERSION> <HEADER Type="Block"> <DATE Type="Key"> 06.03.2003 </DATE> <USER Type="Key"> D. Brauer </USER> </HEADER> </INPUT> For different values of the attribute "Type" (i.e. "Block", "Key") differnet templates should be applied. These have to access the name and contents of the matched element respectively. Can anybody give me a hint on this? Thanks Daniel. *********************************************************************** * Daniel Brauer * * Ingenieurbuero Michael Grabietz * * Phone: ++49 (9341) 89 66 73 Luft- und Raumfahrttechnik * * Fax: ++49 (9341) 89 66 71 Stauferring 56 * * e-mail: D-97941 Tauberbischofsheim * * daniel.brauer@xxxxxxxxxxxxx Germany * *********************************************************************** XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] empty element as an end-m, Jarno . Elovirta | Thread | RE: [xsl] identifying elements by c, Michael Kay |
RE: [xsl] empty element as an end-m, Jarno . Elovirta | Date | RE: [xsl] identifying elements by c, Jarno . Elovirta |
Month |