cra6, вот накидал тебе примерно XSL файл, который должен быть. Пользуйся на здоровие, если что не понятно спрашивай.
| Код | <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="/"> <table border="1"> <tr bgcolor="#CCCCCC"> <td align="center"><strong>Атрибут id</strong></td> <td align="center"><strong>Атрибут alias</strong></td> <td align="center"><strong>Атрибут count</strong></td> <td align="center"><strong>Подробное описание, т.е. exp-trans</strong></td> </tr> <xsl:apply-templates select="owner/exp-resp/exp-seria-resp"/> </table> </xsl:template>
<xsl:template match="owner/exp-resp/exp-seria-resp"> <tr> <td><xsl:value-of select="@id" disable-output-espaping="yes" /></td> <td><xsl:value-of select="@alias" disable-output-espaping="yes" /></td> <td><xsl:value-of select="@count" disable-output-espaping="yes" /></td> <td><xsl:apply-templates select="exp-trans"/></td> </tr> </xsl:template> <xsl:template match="exp-trans"> <div style="margin-bottom:25px;"> id:<xsl:value-of select="@id" disable-output-espaping="yes" /><br /> price:<xsl:value-of select="@price" disable-output-espaping="yes" /><br /> serial:<xsl:value-of select="@serial" disable-output-espaping="yes" /><br /> secret:<xsl:value-of select="@secret" disable-output-espaping="yes" /><br /> expdate:<xsl:value-of select="@expdate" disable-output-espaping="yes" /> <p>Подробнее, т.е. exp-attr:<br /> <xsl:apply-templates select="exp-attr" /> </p> </div> </xsl:template> <xsl:template match="exp-attr"> <xsl:value-of select="@num" disable-output-espaping="yes" />. <xsl:value-of select="@name" disable-output-espaping="yes" /> - <xsl:value-of select="@value" disable-output-espaping="yes" /><br /> </xsl:template>
</xsl:stylesheet>
|
|