List Info

Thread: Re: Re: xsl:call-template: misplaced xsl:apply-imports




Re: Re: xsl:call-template: misplaced xsl:apply-imports
user name
2007-10-16 15:19:50
Why not just customize the "link" template itself,
then?

Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobssagehill.net


----- Original Message ----- 
From: "Sam Steingold" <sdsgnu.org>
To: <docbook-appslists.oasis-open.org>
Cc: "DocBook Apps" <docbook-appslists.oasis-open.org>
Sent: Monday, October 15, 2007 6:23 PM
Subject: [docbook-apps] Re: xsl:call-template: misplaced
xsl:apply-imports


> Hi Bob, thanks for your kind reply!
>
> Bob Stayton wrote:
>> As you found out, the body of a xsl:call-template
can only take 
>> xsl:with-param children, not any other content such
as that generated by 
>> xsl:apply-imports.
>>
>> The basic problem is that this template:
>>
>>    <xsl:template match="link"
name="link">
>>
>> was not written to accept the hot text as a
parameter.  Instead, you 
>> should look at the template named
"simple.xlink" which is used by the 
>> "link" template.  The
"simple.xlink" templates takes both linkend and 
>> content parameters.  Put the apply-imports into the
content parameter.
>
> I thought about it, but <xsl:template
match="link" name="link"> does some 
> fairly complicated content processing which I am
reluctant to replicate.
> maybe it is possible to abstract it out so that I can
use it in my 
> customizations?
> Thanks!
>
> Sam.
>
>
>
>
------------------------------------------------------------
---------
> To unsubscribe, e-mail: docbook-apps-unsubscribelists.oasis-open.org
> For additional commands, e-mail: docbook-apps-helplists.oasis-open.org
>
>
> 



------------------------------------------------------------
---------
To unsubscribe, e-mail: docbook-apps-unsubscribelists.oasis-open.org
For additional commands, e-mail: docbook-apps-helplists.oasis-open.org


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )