[Koha-devel] XSLT and superfluous "xmlns" attributes
Magnus Enger
magnus at enger.priv.no
Mon Jan 21 10:52:00 CET 2013
On 18 January 2013 09:20, Frédéric Demians <frederic at tamil.fr> wrote:
>> and here is the stylesheet in /home/magnus/koha/biblioteksok.xslt:
>
> Try this:
>
> Suppress:
>
> <xsl:template match="marc:controlfield[@tag=001]"/>
> <xsl:template match="marc:datafield[@tag=850]"/>
That did not work, when I left these out the old elements were not removed.
> and replace:
>
> <xsl:template match="marc:leader">
>
> with:
>
>
> <xsl:template match="marc:record">
Ah, that helped!
What I ended up using was this:
https://gist.github.com/1918264#file-biblioteksok-xslt
The clue was including an xmlns-definition on the xsl:element:
<xsl:element name="datafield" xmlns="http://www.loc.gov/MARC21/slim">
Thanks for your help Frédéric!
Best regards,
Magnus
More information about the Koha-devel
mailing list