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
[EMAIL PROTECTED]
----- Original Message -----
From: "Boris" <[EMAIL PROTECTED]>
To: <[email protected]>
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 < and > 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]