VERY basic xslt question. I'm trying to get xslt to format a subset of source xml but all the xml is getting displayed and I have no idea why.
here is xml:
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="XSLTDC.xsl"?>
<letter xmlns:xlink="http://ift.tt/PGV9lw">
<title>Letter from Lionel Cary to Loretta Cary</title>
<date>07-05-1906</date>
<source>
<university>UCLA</university>
<library>Powell Library</library>
<department>Special Collections and University Archives</department>
</source>
</letter>
here's xslt:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet
xmlns:xlink="http://ift.tt/PGV9lw"
xmlns:xsl="http://ift.tt/tCZ8VR"
version="2.0">
<xsl:output method="xml"/>
<xsl:template match="letter/title">
<xsl:value-of select="."/>
</xsl:template>
</xsl:stylesheet>
I am getting this:
Letter from Lionel Cary to Loretta Cary 07-05-1906
UCLA Powell Library Special Collections and University Archives
but my desired result is this:
Letter from Lionel Cary to Loretta Cary
Aucun commentaire:
Enregistrer un commentaire