docbook-apps

  • 1.  Error (illegal character in character reference) in stylesheet

    Posted 12-12-2007 10:25




    Hi!



    I was test driving the docbook xsl transformations when I bumped into
    an error in one of the stylesheets:



    C:\programs\Java\saxon655>java -Xss1m
    -Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.Docume
    ntBuilderF

    actoryImpl
    -Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFac
    toryImpl com.icl.saxon.StyleSheet -o

    \temp\supported.doc
    \downloaded\docbook\docbook-xsl-ns-1.73.2\roundtrip\supported.xml
    \downloaded\docbook\docbook-xsl-ns

    -1.73.2\roundtrip\dbk2wordml.xsl use.extensions=1

    Fatal error reported by XML parser: A decimal representation must
    immediately follow the "&#" in a character reference.

    URL:
    file:/C:/downloaded/docbook/docbook-xsl-ns-1.73.2/roundtrip/dbk2wp.xsl

    Line: 663

    Column: 45

    Error at xsl:import on line 15 of
    file:/C:/downloaded/docbook/docbook-xsl-ns-1.73.2/roundtrip/dbk2wordml.x
    sl:

    org.xml.sax.SAXParseException: A decimal representation must
    immediately follow the "&#" in a character reference.

    Transformation failed: Failed to compile stylesheet. 1 error detected.



    C:\programs\Java\saxon655>java -version

    java version "1.6.0_03"

    Java(TM) SE Runtime Environment (build 1.6.0_03-b05)

    Java HotSpot(TM) Client VM (build 1.6.0_03-b05, mixed mode)





    Any ideas?







    -Antti-








  • 2.  Re: [docbook-apps] Error (illegal character in character reference) in stylesheet

    Posted 12-14-2007 02:41
    Hi,
    This turns out to be a bug in the script that converts the non-namespaced stylesheets to the namespaced stylesheets for DocBook 5. You might try doing the processing with the non-namespaced version of the stylesheets.

    Bob Stayton
    Sagehill Enterprises
    bobs@sagehill.net