|
Line 0
Link Here
|
| 0 |
- |
1 |
<xsl:stylesheet version="1.0" |
|
|
2 |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
| 3 |
xmlns:marc="http://www.loc.gov/MARC21/slim" |
| 4 |
exclude-result-prefixes="marc" |
| 5 |
> |
| 6 |
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/> |
| 7 |
|
| 8 |
<xsl:template match="/"> |
| 9 |
<xsl:apply-templates/> |
| 10 |
</xsl:template> |
| 11 |
|
| 12 |
<xsl:template match="record|marc:record"> |
| 13 |
<record> |
| 14 |
<xsl:apply-templates/> |
| 15 |
<datafield tag="500" ind1='' ind2=''> |
| 16 |
<subfield code="a"> |
| 17 |
<xsl:text>You get this 500 for free!</xsl:text> |
| 18 |
</subfield> |
| 19 |
</datafield> |
| 20 |
</record> |
| 21 |
</xsl:template> |
| 22 |
|
| 23 |
<xsl:template match="node()"> |
| 24 |
<xsl:copy select="."> |
| 25 |
<xsl:copy-of select="@*"/> |
| 26 |
<xsl:apply-templates/> |
| 27 |
</xsl:copy> |
| 28 |
</xsl:template> |
| 29 |
</xsl:stylesheet> |