Re: extract text from xml file

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]" />
</xsl:template>

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

Liam

-- 
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