Frutik
1024-й
параметры в паттернах
xslt_process($xslt, 'file.xml', 'getTitle.xsl', NULL, NULL, array('mid' => $id))
<?xml version="1.0" encoding="koi8-u"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xslaram name="mid" />
<xslutput method="text" encoding="koi8-u"/>
<xsl:template match="/AntMovieCatalog/Catalog/Contents/Movie[@Number = $mid]">
<xsl:value-of select="@OriginalTitle" />
</xsl:template>
</xsl:stylesheet>
Sablotron error on line 6: match pattern contains a variable reference
чего я не так делаю? или так делать нельзя?
xslt_process($xslt, 'file.xml', 'getTitle.xsl', NULL, NULL, array('mid' => $id))
<?xml version="1.0" encoding="koi8-u"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xslaram name="mid" />
<xslutput method="text" encoding="koi8-u"/>
<xsl:template match="/AntMovieCatalog/Catalog/Contents/Movie[@Number = $mid]">
<xsl:value-of select="@OriginalTitle" />
</xsl:template>
</xsl:stylesheet>
Sablotron error on line 6: match pattern contains a variable reference
чего я не так делаю? или так делать нельзя?