[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Newbie Needs Help
Whoops! -- ignore that last post, my first rule was the problem. __________________________________ SPX - Valley Forge T.I.S. 25691 Atlantic Ocean Drive Suite B-7 Lake Forest, CA 92630 USA www.vftis.com __________________________________ Tel: (949) 460 0094 Fax: (949) 460 0095 e-Mail: gpaiz@xxxxxxxxx __________________________________ -----Original Message----- From: Gabriel Paiz III Sent: Friday, December 18, 1998 10:43 AM To: 'xsl-list@xxxxxxxxxxxxxxxx' Subject: RE: Newbie Needs Help Jonathan Marsh writes: > <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl"> > <!-- default templates --> > <xsl:template><xsl:apply-templates/></xsl:template> > <xsl:template match="textnode()"><xsl:value-of/></xsl:template> I think there's a problem with the second rule, in that if you have a textnode that has anonymous and non-anonymous textnodes (i.e. an inline element like 'EMPH'), the processor will concatenate all the nodes into one output textnode. I think you need a rule like below: <xsl:template match="textnode()"><xsl:if match=".[$not$ textnode()]"><xsl:value-of/></xsl:if><xsl:apply-templates/></xsl:templat e> to handle mixed-content nodes. XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|