[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: 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 bobs@sagehill.net ----- Original Message ----- From: "Boris" <boriss@web.de> To: <docbook-apps@lists.oasis-open.org> 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: 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]