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

Re: extract text from xml file

From: Liam R E Quin <liam@w3.org>
Date: Tue, 26 Jan 2010 12:50:59 -0500
To: Andreas Moroder <andreas.moroder@sb-brixen.it>
Cc: www-xsl-fo@w3.org
Message-ID: <1264528259.24019.73.camel@desktop.barefootcomputing.com>
On Tue, 2010-01-26 at 08:43 +0100, Andreas Moroder wrote:
> 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

Possibly, but it's nothing to do with xsl-fo.  I think you
are looking for an XSLT list, or for the xsl list at Mulberry.

Since you are here,
<xsl:template match="/">
<xsl:value-of select="/barcodes/source/index/symbol/data[length(.) =
16]" />

may get you started, if not, see an xslt tutorial :-)


Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://fromoldbooks.org/
Ankh: irc.sorcery.net irc.gnome.org www.advogato.org
Received on Tuesday, 26 January 2010 17:51:03 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:58:33 UTC