Subject: Re: [xsl] How to give out XML-Tags? From: Jarkko.Moilanen@xxxxxx Date: Thu, 05 Dec 2002 12:07:28 +0200 (EET) |
Lainaus sguazt@xxxxxxxxxxx: > Quoting Sorin Marti <mas@xxxxxxxxxx>: > > > Joerg Heinicke wrote: > > > > > sguazt@xxxxxxxxxxx wrote: > > > > > >> Hi Sorin, > > >> try this: > > >> ... > > >> <xsl:text disable-output-escaping="yes"> > > >> <![CDATA[<]]>!DOCTYPE Book PUBLIC "-//OASIS//DTD DocBook V4.1//EN" > > >> "/usr/share/sgml/docbook_4/docbook.dtd"<![CDATA[>]]> > > >> </xsl:text> > > > > > > > > > Please don't try this! Don't use disable-output-escaping if not > > > necessary! Jarno gave already the best alternative. > > > > > > I didn't. The other method (of Jarno) seemed much more professional... > > > > So, What's wrong in using disable-output-escaping? > Generally saying, it indicates that something is wrong or executed in a bad manner. Others can add more details to this explanation. Cheers Jarkko > > But another question: > > > > I've got a docbook-table and I have to specify the number of columns > > with the tag <tgroup cols="5"> > > > > > > The number of columns depend on the xml: that's how I get this number: > > > > <xsl:variable name = "years"> > > <xsl:value-of select='count(energiebericht/energieverbrauch/@jahr)'/> > > </xsl:variable> > > > > But How do I put this value into <tgroup cols="?"> ??? > > If you already have this value in variable $years use: > <tgroup cols="{$years}"> > otherwise: > <tgroup cols="{count(energiebericht/energieverbrauch/@jahr)}"> > If you don't like inline version use: > <tgroup> > <xsl:attribute name="cols"><xsl:value-of select="$years" > /></xsl:attribute> > ... > </tgroup> > > > > > > > > > > > Joerg > > > > > > > > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list > > > > > > > > > > > > > > > > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list > > > > > > -- > -------------------------------- > Marco Guazzone > Software Engineer > Kerbero S.r.L. - Gruppo TC > Viale Forlanini, 36 > Garbagnate M.se (MI) > 20024 - Italy > mail: marco.guazzone@xxxxxxxxxxx > www: http://www.kerbero.com > Tel. +39 02 99514.247 > Fax. +39 02 99514.399 > -------------------------------- > > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list > > **************************************************************** Jarkko Moilanen "Erehtyminen on inhimillista, Researcher/ ITCM mutta todella suuret mokat jm60697@xxxxxx vaativat tietokoneen käyttöä." www.uta.fi/~jm60697 GSM: +358 50 3766 927 **************************************************************** * ITCM | Information Technology and Crisis Management * http://www.itcm.org **************************************************************** XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] How to give out XML-Tags?, sguazt | Thread | Re: [xsl] How to give out XML-Tags?, David Carlisle |
RE: [xsl] How to give out XML-Tags?, Jarno . Elovirta | Date | RE: [xsl] following-sibling questio, Michael Kay |
Month |