Next in thread → Next in month →

Re: [docbook-apps] PI as a variable value

From
Bob Stayton <>
Date
2011-07-12T16:32:58+00:00
ID
046601cc40b1$5256c8b0$6600a8c0@pazu
Thread
Re: [docbook-apps] PI as a variable value
Hi,
I don't think the variable is empty.  How are you using the variable?  If you say 
<xsl:value-of select="$nbthinsp"/>, then the result will be empty because xsl:value-of 
returns a *string* value.  If instead you say <xsl:copy-of> then it should work for 
you.

Bob Stayton
Sagehill Enterprises



----- Original Message ----- 
From: "Christophe HARO" <>
To: "docbook-apps" <>
Sent: Monday, July 11, 2011 11:15 PM
Subject: [docbook-apps] PI as a variable value


> Hi all,
>
> Is it possible, in a two-pass processing, to define a variable of the first pass 
> with a value that is a PI :
>
>  <xsl:variable name="nbthinsp">
> <xsl:processing-instruction name="nbthinsp">
>
> </xsl:processing-instruction>
>  </xsl:variable>
>
> such that $nbthinsp give the value <?nbthinsp?> in the output of the first pass. 
> With the code above, $nbthinsp is empty.
>
> Many thanks,
>
> -- 
> Christophe HARO
> 
> ----------------------------
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: 
> For additional commands, e-mail: 
>
>
>
Next in thread → Next in month →