Subject: [xsl] Sibling access in XSL ! From: "rajasekhar v" <bigfundu@xxxxxxxxxxx> Date: Fri, 24 Sep 2004 03:27:14 +0530 |
---------------------------------------------------------------------------------------------------- <?xml version="1.0" encoding="UTF-8" standalone ="yes"?> <FRUIT> <IDENTIFICATION> <NAME>APPLE</NAME> </IDENTIFICATION>
<APPEARANCE> <COLOR>RED</COLOR> </APPEARANCE>
<STORAGE> <TEMP>STORE APPLES UNDER 20 DEGREE</TEMP> </STORAGE>
<IDENTIFICATION> <NAME>GRAPE</NAME> </IDENTIFICATION>
<APPEARANCE> <COLOR>BLACK</COLOR> </APPEARANCE>
<STORAGE> <TEMP>STORE GRAPES UNDER 30 DEGREE</TEMP> </STORAGE>
</FRUIT> ----------------------------------------------------------------------------------------------------
<xsl:template match="IDENTIFICATION"> <TR><TD><xsl:value-of select="NAME"/></TD></TR> </xsl:template>
<xsl:template match="APPEARANCE"> <TR><TD><xsl:value-of select="COLOR"/></TD></TR> </xsl:template>
<xsl:template match="STORAGE"> <TR><TD><xsl:value-of select="TEMP"/></TD></TR> </xsl:template> </xsl:stylesheet> ----------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------- APPLE GRAPE RED BLACK STORE APPLES UNDER 20 DEGREE STORE GRAPES UNDER 30 DEGREE ----------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------- APPLE RED STORE APPLES UNDER 20 DEGREE
GRAPE BLACK STORE GRAPES UNDER 30 DEGREE ---------------------------------------------------------------------------------------------------- i.e the details of apples appearing first followed by grape.
Regards, Raj
--+------------------------------------------------------------------ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/ or e-mail: <mailto:xsl-list-unsubscribe@xxxxxxxxxxxxxxxxxxxxxx> --+--
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] How to generate XSLT for , Anton Triest | Thread | Re: [xsl] Sibling access in XSL !, JBryant |
Re: [xsl] Using a pre-processor for, David Adams | Date | Re: [xsl] Reading the values of ele, David Adams |
Month |