Extract a certain field from a collection
Alexander Fischer
alexanderfischer at o2online.de
Tue Jan 27 09:11:24 MST 2009
Hello,
this is an xslt stylesheet which leads to an txt file with a single isbn
value on every line.
I don't know, if it helps you, but it is maybe a starting point.
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:tc="http://periapsis.org/tellico/"
xmlns:str="http://exslt.org/strings"
xmlns:dyn="http://exslt.org/dynamic"
xmlns:exsl="http://exslt.org/common"
extension-element-prefixes="str dyn exsl"
exclude-result-prefixes="tc"
version="1.0">
<xsl:output method="text" encoding="UTF-8"/>
<xsl:template match="/">
<xsl:call-template name="isbn"/>
</xsl:template>
<xsl:template name="isbn">
<xsl:for-each select="//tc:isbn">
<xsl:value-of select="."/>
<xsl:text> </xsl:text>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
Am 27.01.2009, 14:21 Uhr, schrieb Valerio Ricci <pompafi at hotmail.it>:
> Hi everyone,
> Recently I was trying to extract the list of ISBN of my collection to
> add them
> to anobii (honestly I don't think that it is a good way to catalog
> books, but I
> was interested to book suggestions that the site offers and, privacy
> apart, I
> decided to have a look at it). The problem is that I couldn't find a way
> to
> export in a plain text file (or something like that) only ISBN values.
> Surely I
> can create a template to select only a certain field, but it is not so
> "user
> friendly". Is there a simpler way to do this operation without "playing"
> with
> templates?
> If there's no such a feature will not be a good idea to implement
> something like
> export selected field only?
> Thanks
>
> Valerio
>
> _______________________________________________
> tellico-users mailing list
> tellico-users at forge.novell.com
> http://forge.novell.com/mailman/listinfo/tellico-users
>
--
Mit freundlichem Gruß
Alexander Fischer
More information about the tellico-users
mailing list