This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Singleton Tag Replacement


Ummm
<BR/>

XML/XSL Portal 
http://www.bayes.co.uk/xml


>-----Original Message-----
>From: owner-xsl-list@mulberrytech.com
>[mailto:owner-xsl-list@mulberrytech.com]On Behalf Of Chowdhury,
>Anisuzzaman
>Sent: 14 September 2000 15:01
>To: 'XSL-List@mulberrytech.com'
>Subject: Singleton Tag Replacement
>
>
>Hi,
>I apologize if this has been discussed already.
>
>Does anyone have the idea of how to replace a singleton tag(e.g. <eos/>)
>with another tag(e.g. <BR/>)?
>
>An example follows:
>
>XML data:
><history.text attr="01">
><bop/><bos/>History<eos/><bos/>Date: 12/31/1798</eos><bos>bla bla
>bla....<eos/><eop/>
></history.text>
>
>Expected Output:
>
><P>History<BR/>Date: 12/31/1798<BR/>bla bla bla....<BR/></P>
>
>I've created two templates:
>
><xsl:template match="eos">
>??? What should go here???
></xsl:template>
>
><xsl:template name="History">
><xsl:if test="history.text/@attr='01'">
><P><xsl:apply-templates/></P>
></xsl:if>
></xsl:template>
>
>
>Your responses will be highly appreciated.
>
>- Anis Chowdhury
>
>
> XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]