You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by Thorsten Scherler <th...@juntadeandalucia.es> on 2008/07/03 11:33:41 UTC
Re: svn commit: r673630 -
/forrest/trunk/plugins/org.apache.forrest.plugin.output.pdf/resources/stylesheets/helper-commonElements.xsl
On Thu, 2008-07-03 at 12:26 +0300, Sjur Moshagen wrote:
> Hello,
>
> Anybody able to help me? I thought that the following in document-to-
> fo.xsl:
>
> <xsl:variable
> name="sans-serif"
> select="'sans-serif'" />
> <xsl:variable
> name="serif"
> select="'serif'" />
> <xsl:variable
> name="monospace"
> select="'monospace'" />
> ...
> <xsl:include
> href="helper-commonElements.xsl" />
Hmm, not sure but did you try a xsl:import instead and not defining the
variables again. That should work.
salu2
--
Thorsten Scherler thorsten.at.apache.org
Open Source Java consulting, training and solutions
Re: svn commit: r673630 - /forrest/trunk/plugins/org.apache.forrest.plugin.output.pdf/resources/stylesheets/helper-commonElements.xsl
Posted by Sjur Moshagen <sj...@mac.com>.
Den 3. jul. 2008 kl. 14.01 skrev Sjur Moshagen:
> Den 3. jul. 2008 kl. 12.33 skrev Thorsten Scherler:
>
>> Hmm, not sure but did you try a xsl:import instead and not defining
>> the
>> variables again. That should work.
>
> Did try now - same result. To me this looks like something is
> blocking the include/import - this *ought to* work. I'm out of ideas
> at the moment.
This is clearly a bug somewhere. According to the specs, the included
(and also imported) stylesheet should in effect be treated as if it
where part of the text of the including stylesheet:
"The inclusion works at the XML tree level. The resource located by
the href attribute value is parsed as an XML document, and the
children of the xsl:stylesheet element in this document replace the
xsl:include element in the including document."[1]
But the behaviour observed is not in accordance with this.
Also, it seems that only variable and param definitions are affected -
regular template rules work as they should.
Sjur
[1] http://www.w3.org/TR/xslt#include
Re: svn commit: r673630 - /forrest/trunk/plugins/org.apache.forrest.plugin.output.pdf/resources/stylesheets/helper-commonElements.xsl
Posted by Sjur Moshagen <sj...@mac.com>.
Den 3. jul. 2008 kl. 12.33 skrev Thorsten Scherler:
> Hmm, not sure but did you try a xsl:import instead and not defining
> the
> variables again. That should work.
Did try now - same result. To me this looks like something is blocking
the include/import - this *ought to* work. I'm out of ideas at the
moment.
Sjur