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

Tags within tags

Subject: Tags within tags
From: "Nice, Kerry A. (LNG-SHEP)" <Kerry.Nice@xxxxxxxxxxxx>
Date: Mon, 18 Dec 2000 08:44:54 -0700
tags within tags
Hi,
I was given the following xml and I need to convert it to rtf.  There are
<nl/> tags scattered at random places throughout it.  How do I turn those
tags into /par.  Granted, this isn't the way I would have constructed the
xml, but that wasn't my decision.

Here is some of the xml:
<COUNSEL n="105" lntype="seg">
  For Phyllis Richardson, Appellant: Bernardo Lopez, Federal Public
Defender/Southern Dist. of FL, Fort Lauderdale, FL.

  <nl/>

  <nl/>For United States of America, Appellee: Sangita Rao, Dept of Justice,
Washington, DC. Neil Karadbil, U.S. Atttorneys Office, Miami, FL. Marc
Eagleson, Stephen Schlessinger, Anne R. Schultz, U.S. Attorney&apos;s
Office, Miami, FL. 
</COUNSEL>

<JUDGES n="110" lntype="seg">
  Before BARKETT, WILSON and MAGILL *, Circuit Judges. 
  <footnote headerend="no" headerbegin="no">
    <fn id="fnotestar1" fnridrefs="refstar1" labelicon="yes">
      <fnbody>
        <nl/>
        <nl/>
        * Honorable Frank J. Magill, U.S. Circuit Judge for the Eighth
Circuit Court of Appeals, sitting by designation. WILSON, Circuit Judge,
concurring. 
      </fnbody>
    </fn>
  </footnote> 
</JUDGES>

And so far, this xsl has not worked:

<xsl:template match="COUNSEL">
\par <xsl:text disable-output-escaping="yes">&lt;I&gt;</xsl:text>
<xsl:value-of select="."/>
</xsl:template>


<xsl:template match="JUDGES">
\par <xsl:text disable-output-escaping="yes">&lt;I&gt;</xsl:text>
<xsl:value-of select="."/>
\par\par }  }
</xsl:template>

<xsl:template match="nl">
\par
</xsl:template>

Is there a way to make this work?

Thanks,
Kerry.

--------
Kerry Nice
Java Programmer
LEXIS Publishing, Shepard's
"Bring me the head of David Hasselhoff"

 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.