#125 Using with .Net Framework

closed
Jirka Kosek
None
5
2005-07-05
2005-04-18
Filipe Correia
No

Hello,

I'm aware that this is more of a .NETframework's issue
than it is of Docbook stylesheets but I think a very
simple workaround can be made without affecting
functionality, broadening the stylesheets compatability:

http://alt-soft.com/support_kb_docbook_and_net_xsltransform.jsp
"There is a number of limitations in the built-in
Microsoft .NET Framework XslTransform
(System.Xml.Xsl.XslTransform) class which makes
Microsoft .NET XSLT compiler incompatible with DocBook
stylesheets.
We provide the patch for the latest docbook-xsl version
(1.68.1) that fixes these problems in FO stylesheets"

Cheers,
Filipe

Discussion

  • Jirka Kosek
    Jirka Kosek
    2005-07-05

    Logged In: YES
    user_id=189932

    Fragments of code proposed in patch are not semantically
    identical. You can't reference variable bound in xsl:with-param in
    the following xsl:with-param.

    In "common.xsl" the following lines (2 occurrences):

    <xsl:with-param name="firstyear" select="$years[1]"/>
    <xsl:with-param name="nextyear" select="$years[1] + 1"/>

    are changed to

    <xsl:with-param name="firstyear" select="$years[1]"/>
    <xsl:with-param name="nextyear" select="$firstyear + 1"/>

     
  • Jirka Kosek
    Jirka Kosek
    2005-07-05

    • assigned_to: nobody --> kosek
    • status: open --> closed
     
  • Altsoft
    Altsoft
    2005-07-07

    Logged In: YES
    user_id=1250107

    We have updated a patch to make it semantically identical to
    the original stylesheets. Unfortunately, this solution still
    couldn't produce a correct copyright years list with .NET
    XSLT but it does produce the correct results with all other
    XSLT engines now.

    Please refer to
    http://alt-soft.com/support_kb_docbook_and_net_xsltransform.jsp
    for the technical details and download.

    Please do not hesitate to contact us for comments and
    details at support@alt-soft.com . Moreover, we are
    interested in collaboration with DocBook community to make
    this project compatible with Microsoft .NET framework.

    Best regards,
    Victor Vishnyakov
    Altsoft n.v.
    http://alt-soft.com/