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
[email protected]


----- Original Message ----- From: "Christophe HARO" <[email protected]>
To: "docbook-apps" <[email protected]>
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
[email protected]
----------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]





---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to