SilverStray
Programmer
Hi,
I'm want to have the following output:
Document A : FA
Description: Funny Animals
Document C : FRF
Description: Fruitful Fantasy
-->And this is my XML data:
<documentData>
<document>
<type>A</type>
<name>FA</name>
<desc>Funny Animals</desc>
</document>
<document>
<type>B</type>
<name>TRVL</name>
<desc>Travel</desc>
</document>
<document>
<type>C</type>
<name>FRF</name>
<desc>Fruitful Fantasy</desc>
</document>
<document>
...(other document codes in here)
</document
</documentData>
I tried to use <xsl:apply-templates select="document" but it seems wrong as I need to get document type A and C only.
How can I filter them out from the document node?
Thanks in advance!
J. Echavez
I'm want to have the following output:
Document A : FA
Description: Funny Animals
Document C : FRF
Description: Fruitful Fantasy
-->And this is my XML data:
<documentData>
<document>
<type>A</type>
<name>FA</name>
<desc>Funny Animals</desc>
</document>
<document>
<type>B</type>
<name>TRVL</name>
<desc>Travel</desc>
</document>
<document>
<type>C</type>
<name>FRF</name>
<desc>Fruitful Fantasy</desc>
</document>
<document>
...(other document codes in here)
</document
</documentData>
I tried to use <xsl:apply-templates select="document" but it seems wrong as I need to get document type A and C only.
How can I filter them out from the document node?
Thanks in advance!
J. Echavez