[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: 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 bobs@sagehill.net ----- Original Message ----- From: "Christophe HARO" <christophe.haro@free.fr> To: "docbook-apps" <docbook-apps@lists.oasis-open.org> 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 > Christophe.HARO@free.fr > ---------------------------- > > --------------------------------------------------------------------- > 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]