This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Including tags in an xml:variable
- To: "'xsl-list at lists dot mulberrytech dot com'" <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] Including tags in an xml:variable
- From: "Huisking, Michael" <MHuisking at caiso dot com>
- Date: Tue, 3 Jul 2001 11:09:28 -0700
- Reply-To: xsl-list at lists dot mulberrytech dot com
Thanks!
-----Original Message-----
From: Michael Kay [mailto:mhkay@iclway.co.uk]
Sent: Tuesday, July 03, 2001 10:53 AM
To: xsl-list@lists.mulberrytech.com
Subject: RE: [xsl] Including tags in an xml:variable
>
> Is there a way to define an xml:variable that contains tags
> such that the
> tags themselves will literally be written out to the outfile on the
> transformation?
Sure, just use <xsl:copy-of> in place of <xsl:value-of>
Mike Kay
Software AG
>
> I have an xsl file that I use to produce an fo file. It
> contains several
> tables that have the same column definitions and I'd like to
> be able to
> declare the definition once and use it many times in the
> file. For example:
>
> <xsl:variable name="ColumnWidths">
> <fo:table-column column-width="0.5in"/>
> <fo:table-column column-width="2in"/>
> <fo:table-column column-width="2in"/>
> <fo:table-column column-width="0.5in"/>
> <fo:table-column column-width="0.5in"/>
> <fo:table-column column-width="0.5in"/>
> <fo:table-column column-width="0.5in"/>
> <fo:table-column column-width="0.5in"/>
> </xsl:variable>
>
> <fo:table>
> <xsl:value-of select="$ColumnWidths"/>
> <fo:table-body>
> ** OMITTED TABLE STUFF **
> </fo:table-body>
> </fo:table>
>
> ** More Omitted Stuff **
> <fo:table>
> <xsl:value-of select="$ColumnWidths"/>
> <fo:table-body>
> ** SOME OTHER TABLE STUFF HERE**
> </fo:table-body>
> </fo:table>
>
>
> Is something like this possible? I haven't had any luck
> trying to use <
> and > (they stay as the literals ">" and "<" in the output.)
>
> Thanks in advance.
>
> Michael Huisking
> California ISO
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list