Re: XLST - Help needed to write the XSL (2)
My last xslt :
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:npl="http://www.epo.org/npl" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<xsl:output method="xml" doctype-system="npl-entities.dtd"/>
<xsl:template match="/">
<nplbiblio>
<xsl:attribute name="xsi:noNamespaceSchemaLocation">npldoc v2.0.xsd</xsl:attribute>
<xsl:attribute name="rundate">20080123</xsl:attribute>
<xsl:for-each select="nplbiblio/document">
<document status="n">
<xsl:attribute name="creadate">20080123</xsl:attribute>
<xsl:copy-of select="xp"/>
<xsl:copy-of select="doctype"/>
<xsl:copy-of select="prdate"/>
<xsl:copy-of select="xp"/>
<xsl:copy-of select="author"/>
<xsl:copy-of select="supplier"/>
<title>
<xsl:value-of select="document/titles/title"/>
</title>
<isbn>
<xsl:value-of select="document/publication/irn/isbn"/>
</isbn>
<issn>
<xsl:value-of select="document/publication/irn/issn"/>
</issn>
<first_page>
<xsl:value-of select="document/attribs/attrib name=pg_from_hostdoc"/>
</first_page>
<volume>
<xsl:value-of select="document/attribs/attrib name=vol_from_hostdoc"/>
</volume>
<issue>
<xsl:value-of select="document/attribs/attrib name=nr_from_hostdoc"/>
</issue>
</document>
</xsl:for-each>
</nplbiblio>
</xsl:template>
</xsl:stylesheet>