Re: [docbook-apps] Inserting tag into generated text?

From
Bob Stayton <>
Date
2008-09-03T15:51:54+00:00
ID
00e501c90ddd$00785770$6a00a8c0@pazu
Thread
Re: [docbook-apps] Inserting tag into generated text?
Hi Boris,
The simple answer is that you can't put tags inside attribute values. 
That's a limitation of XML.  If you are asking why an attribute value is 
used to hold gentext rather than an element body, I'm not sure.  I think it 
is to make the gentext work in any output mode, not just HTML or XSL-FO.

To do what you want, you generally have to make your own xsl:template that 
assembles the gentext components and wraps them in elements as needed.

Bob Stayton
Sagehill Enterprises



----- Original Message ----- 
From: "Boris" <>
To: <>
Sent: Tuesday, September 02, 2008 4:51 PM
Subject: [docbook-apps] Inserting tag into generated text?


>I tried to insert a tag into generated text which doesn't work (xsltproc 
>complains):
>
> <l:template name="chapter" text="<bla>Chapter</bla> %n. %t"/>
>
> I tried to use then &lt; and &gt; but they are not replaced with < and > 
> but written directly. Is there a trick to do what I try?
>
> Thanks in advance,
> Boris
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: 
> For additional commands, e-mail: 
>
>
>