[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] titlepage.xsl generates target script without'exsl' namespace entry
I ran into this problem on Friday and sent a message to the xalanj-users list. They pointed me at bug #2305 which also lists a workaround: http://issues.apache.org/jira/browse/XALANJ-2305 An additional workaround was provided on the mailing list: You can view the thread here: http://marc.theaimsgroup.com/?t=115533275500001&r=1&w=2 I haven't tested any of the workarounds (I switched to Saxon for this operation) I could do so an submit a patch if there is any interest. Le me know. Thanks, Sean Bob Stayton wrote: > This looks to me like a bug in Xalan (used by xsltc). The > titlepage.xsl stylesheet has this template: > > <xsl:template match="t:templates"> > <xsl:element name="xsl:stylesheet"> > <xsl:copy-of select="document('')/xsl:stylesheet/namespace::exsl"/> > ... > > The 1.69.1 version of template/titlepage.xsl has the exsl namespace in > its xsl:stylesheet element, so it should get copied to the output > element. > > I tested this with xsltproc and saxon 6.5.4 and > xmlns:exsl="http://exslt.org/common" attribute is added to the > xsl:stylesheet element. I tried with Xalan 2.7.0 and it does not. A > little debugging shows that Xalan does recognize that there is such a > namespace node on the input element, but for some reason it fails to > copy it out the result, even though there is an explicit copy-of for > that node. > > Bob Stayton > Sagehill Enterprises > DocBook Consulting > bobs@sagehill.net > > > ----- Original Message ----- From: "Jörg Möbius" > <joerg.moebius@hamburg.de> > To: <docbook-apps@lists.oasis-open.org> > Sent: Monday, March 20, 2006 7:13 AM > Subject: [docbook-apps] titlepage.xsl generates target script without > 'exsl' namespace entry > > > Hi all, > > I am generating a customized titlepage with this ant task: > > > <target name="buildTitlepageFO" description="generates a title page > ..."> > <style > in="titlepageFO.templates.xml" > out="titlepageFO.xsl" > style="docbook/template/titlepage.xsl" > force="yes"> > </style> > </target> > > The resulting stylesheet do not contain an > 'xmlns:exsl="http://exslt.org/common" entry. > It is not a great issue due to the possibility to post the entry > manually. > Furthermore the titlepage structure is not to be changed not very often. > > But if one could be run only a single build job would be more convenient. > > Does any body know how to avoid this problem resp. how to post the > namespace > automatically (without editing the genuine script). > > Config: - ant 1.6.5 within eclipse 3.1.2, -> xsltc > - docbookxls 1.69.1 > > Thanks in advance for any hint. > > Best Regards > > Joerg Moebius > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org > For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org > For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org > > >
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]