[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Singleton Tag Replacement

Subject: RE: Singleton Tag Replacement
From: "Chris Bayes" <Chris@xxxxxxxxxxx>
Date: Thu, 14 Sep 2000 17:07:02 +0100
xml singleton tag
Ummm
<BR/>

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


>-----Original Message-----
>From: owner-xsl-list@xxxxxxxxxxxxxxxx
>[mailto:owner-xsl-list@xxxxxxxxxxxxxxxx]On Behalf Of Chowdhury,
>Anisuzzaman
>Sent: 14 September 2000 15:01
>To: 'XSL-List@xxxxxxxxxxxxxxxx'
>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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.