$ xsltproc cfg.xsl cfg.xml runtime error: file cfg.xsl line 7 element param Unexpected XSLT element 'param'. no result for cfg.xml
"Definition and Usage The <xsl:param> element is used to declare a local or global parameter. Note: The parameter is global if it's declared as a top-level element, and local if it's declared within a template." dodam, ze na RH z libxslt-1.1.11 dziala.
<?xml version="1.0" encoding="iso-8859-1"?> <keys> <section name="foo"> <key name="bar"/> </section> </keys>
<?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:output method="text" /> <xsl:template match="keys"> <xsl:for-each select="section"> <xsl:for-each select="key"> <xsl:param name="previous-position" select="position()-1" /> </xsl:for-each> </xsl:for-each> </xsl:template> </xsl:stylesheet>
_______________________________________________ pld-devel-pl mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-devel-pl
