slides - XSL transformace

Vit Koksa vit.koksa na i.cz
Úterý Březen 18 14:49:03 CET 2003


Dekuji za radu, bohuzel to nepomohlo. Nicmene obdrzel jsem
po pouziti Saxona podrobnejsi popis chyb. Vypsalo se jich
nekolik set, uvadim jen par prvnich:

~/cviceni/xml> java com.icl.saxon.StyleSheet -o slidesdemo.html slidesdemo.xml 
/usr/local/slides/slides-3.1.0/xsl/html/default.xsl
Error at xsl:variable on line 1040 of 
file:/usr/local/docbook/docbook-xsl-1.60.1/common/common.xsl:
   Element must have a "name" attribute
Error at xsl:when on line 1044 of 
file:/usr/local/docbook/docbook-xsl-1.60.1/common/common.xsl:
   Variable data has not been declared
Error at xsl:value-of on line 1045 of 
file:/usr/local/docbook/docbook-xsl-1.60.1/common/common.xsl:
   Variable data has not been declared
Error at xsl:when on line 1047 of 
file:/usr/local/docbook/docbook-xsl-1.60.1/common/common.xsl:
   Variable data has not been declared
Error at xsl:value-of on line 1048 of 
file:/usr/local/docbook/docbook-xsl-1.60.1/common/common.xsl:
   Variable data has not been declared


Na inkriminovanem miste v common.xsl je toto:

    1033
    1034 <xsl:template name="mediaobject.filename">
    1035   <xsl:param name="object"></xsl:param>
    1036
    1037   <xsl:variable name="data" select="$object/videodata
    1038                                     |$object/imagedata
    1039                                     |$object/audiodata
    1040                                     |$object"/>
    1041
    1042   <xsl:variable name="filename">
    1043     <xsl:choose>
    1044       <xsl:when test="$data[@fileref]">
    1045         <xsl:value-of select="$data/@fileref"/>
    1046       </xsl:when>
    1047       <xsl:when test="$data[@entityref]">
    1048         <xsl:value-of select="unparsed-entity-uri($data/@entityref)"/>
    1049       </xsl:when>
    1050       <xsl:otherwise></xsl:otherwise>
    1051     </xsl:choose>
    1052   </xsl:variable>


Vit Koksa

Jirka Kosek wrote:
> Vit Koksa wrote:
> 
> 
>>Pouzivam
>>slides-3.1.0
>>docbook-xsl-1.60.1
>>xalan-j_2_2_D11
> 
> 
> Doporučil bych používat Saxon místo Xalan. V Xalanu jsou některé chyby,
> které se projeví právě při použití stylů pro DocBooku. Mohl by to být i
> tento případ.
> 

-- 
Vit Koksa



Další informace o konferenci Docbook