http://www.speedyshare.com/GsC3H/xml-3.tar.gz >> xml, xsl
ja używam tego wariantu [linux] : http://manpages.ubuntu.com/manpages/pre … slt.1.html
saxonb-xslt -s:sites.xml -xsl:sites_to_html.xsl -o:html_by_proc.html
lecimy dalej :
miałem problem wybraniem unikatowych wartosc ( w sensie bez powtorzen )
http://stackoverflow.com/questions/2291 … nct-values << rozwiazanie jeżeli potrzebujecie wartości elementów
...natomiast jeżeli chcecie wyciągnąć wartości parametrów :
<?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="xml" encoding="UTF-8" version="1.0" />
<xsl:key name="source" match="article/@source" use="." />
<xsl:template match="/"> <raport> <sourceList> <xsl:for-each select="//article/@source[generate-id() = generate-id(key('source',.)[1])]"> <xsl:value-of select="."/> </xsl:for-each> </sourceList> </raport> </xsl:template>
</xsl:stylesheet>
|