W3C home > Mailing lists > Public > www-xsl-fo@w3.org > January 2010

extract text from xml file

From: Andreas Moroder <andreas.moroder@sb-brixen.it>
Date: Tue, 26 Jan 2010 08:43:01 +0100
To: www-xsl-fo@w3.org
Message-ID: <hjm6e4$6mt$1@ger.gmane.org>
Hello,

I have a xml file that looks like the sample above.

Is there a simple way with xsltproc to extract the content of data only 
if symbol type="CODE-39" to a simple file like this

MRDNRS01A65B100X
QNSPER02K73A210Q


Thanks
Andreas

Samples file:


<?xml version="1.0"?>
<barcodes xmlns="http://zbar.sourceforge.net/2008/barcode"><source 
href="CONSE2.TIF">
<index num="0">
<symbol type="CODE-39" quality="56"><data>NO</data></symbol>
<symbol type="CODE-39" quality="55"><data>SI</data></symbol>
<symbol type="CODE-39" quality="62"><data>MRDNRS01A65B100X</data></symbol>
</index>
<index num="1">
<symbol type="CODE-39" quality="44"><data>NO</data></symbol>
<symbol type="CODE-39" quality="48"><data>SI</data></symbol>
<symbol type="CODE-39" quality="38"><data>QNSPER02K73A210Q</data></symbol>
</index>
</index>
</source></barcodes>
Received on Tuesday, 26 January 2010 13:26:12 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 26 January 2010 13:26:13 GMT