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

Formatting an element at the end of PCDATA

Subject: Formatting an element at the end of PCDATA
From: "Cees Dekker" <cees.dekker@xxxxxxxx>
Date: Fri, 10 Sep 1999 21:30:59 +0200
formatting pcdata
I am having trouble with finding the proper XSL coding for IE5 for the following XML code:
.............<JRNL>Journal of physics<CITY>Amsterdam</CITY></JRNL>.............
while the element CITY can also occur elsewhere outside JRNL.
 
I want to get as output:
 ...........Journal of physics [Amsterdam]..................
while for the CITY element outside JRNL no square brackets are allowed.
 
The XSL coding to start with for the element CITY outside JRNL is:
  <xsl:template match="JRNL">
    <xsl:apply-templates />
  </xsl:template> 
  <xsl:template match="CITY">
   <xsl:apply-templates />
  </xsl:template> 
 
Does someone know how to change this XSL coding to get the wanted result? I don't seem to be able to find the proper 'contexting'. Keep in mind the inside element JRNL also element like ITAL, BOLD, etc. may occur.
 
Regards,
Cees Dekker
ILOX
Netherlands
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.