This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE:
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: [xsl] RE:
- From: "Zarella Rendon" <zarella at coolheads dot com>
- Date: Mon, 29 Oct 2001 21:42:21 -0600
- Reply-To: xsl-list at lists dot mulberrytech dot com
If you absolutely insist on using un-well-formed xml, you can use <xsl:text>
with disable-output-escaping set to yes to generate "pseudo-tags" that won't
get parsed out of the XSLT stylesheet:
<xsl:text disable-output-escaping="yes"><div></xsl:text>
This will generate a <div> tag in the output, but is ignored by the
processor because it is not technically a "tag".
--------------
Zarella Rendon
Principal Consultant
HMM Consulting International, Inc.
DTDs/schemas - conversion - ebooks - publishing - Web - B2B - training
<URL: http://www.hmmci.com/ >
zarella@hmmci.com
> -----Original Message-----
> From: owner-xsl-list@lists.mulberrytech.com
> [mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of
> Littlefield@crimson-int.freeserve.co.uk
> Sent: Tuesday, October 23, 2001 5:10 AM
> To: XSL-List@lists.mulberrytech.com
> Subject:
>
>
> <element id="42" Description="Sales Variance" type="1" cube="0" close="">
> <data id="0" date="11/05/2002" value="0000" quantity="0000"/>
> <data id="1" date="18/05/2002" value="0000" quantity="0000"/>
> <data id="2" date="25/05/2002" value="0000" quantity="0000"/>
> </element>
> <element id="43" Description="Lower Limit" type="2" cube="0" close="">
> <data id="0" date="11/05/2002" value="-15000" quantity=""/>
> <data id="1" date="18/05/2002" value="-15000" quantity=""/>
> <data id="2" date="25/05/2002" value="-15000" quantity=""/>
> </element>
> <element id="44" Description="Upper Limit" type="2" cube="0" close="true">
> <data id="0" date="11/05/2002" value="15000" quantity=""/>
> <data id="1" date="18/05/2002" value="15000" quantity=""/>
> <data id="2" date="25/05/2002" value="15000" quantity=""/>
> </element>
>
> <xsl:if match=".[@type='1']">
> <table border="0" cellspacing="1" cellpadding="1"><td></td></table>
> <div style="display:none;"><table border="0"
> cellspacing="1" cellpadding="1">
> </xsl:if>
> <xsl:if match=".[@type='2']">
> <div style="display:none;"><table border="0"
> cellspacing="1" cellpadding="1">
> <tr><xsl:for-each select="./data"><td ><input
> type="text"></input></td></xsl:for-each></tr>
> </xsl:if>
> <xsl:if match=".[@close='true']">
> <tr><xsl:for-each select="./data"><td><input
> type="text"></input></td></xsl:for-each></tr>
> </table></div>
> </xsl:if>
>
> A type 1 will always be followed by a type 2 and there will
> always be two type 2's. The type 2's need to be included within a
> div tag as the two rows are hidden and only displayed when the
> user clicks a corresponding row in a different frame. The fact
> that the closing tag is included in a different xsl tag seems to
> pose a problem. Any help!
>
>
> _______________________________________________________________________
> Never pay another Internet phone bill!
> Freeserve AnyTime, for all the Internet access you want, day and
> night, only £12.99 per month.
> Sign-up at http://www.freeserve.com/time/anytime
>
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list