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

searching string! Need your help

Subject: searching string! Need your help
From: normbishop1@xxxxxxxxxxxx
Date: Tue, 21 May 2002 21:25:56 -0400
searching string xsl
Hello,

First I would like to thank all of you for all the help you have 
provided!!!

I think my problem is very simple but I am having trouble making it to 
work.
The xsl code should go through the document and find all the <super> 
tags. Instead I get this:

[ERROR]: The markup in the document preceding the root element must be 
well-formed.
(The xml file is well-formed but not the .fo file.  )

<xsl:template match="node()">
<xsl:copy>
<xsl:copy-of select="@*"/>
    <xsl:if test="contains(. ,'<sub>')">
       <fo:inline baseline-shift="super" font-size=".75em">
         <xsl:text>FOUND SUPER </xsl:text>
      </fo:inline>
  </xsl:if>
</xsl:copy>
</xsl:template>


Then, I have tried the following code and got "NO LUCK"!!!!

<xsl:template match="document//*">
<xsl:variable name="curNode" select="."/>
  <xsl:choose>           <xsl:when 
test="contains($curNode,'<sub>')">
               <xsl:text>FOUND SUPER </xsl:text>
       </xsl:when>
       <xsl:otherwise>
            <xsl:text>NO LUCK</xsl:text>
       </xsl:otherwise>                           </xsl:choose>
</xsl:template>

Xml file looks something like this:

<<?xml version="1.0" encoding="iso-8859-1"?>
<?xml-stylesheet type='text/xsl' href='../810_005.xsl'?>
<document id="12345">
  <TABLE >
      <TABLE_TITLE> Table Title </TABLE_TITLE>
          <ROWS>
              <cell X="0" Y="0"/>
              <cell X="0" Y="1">T<sub>1</sub>op</cell>
              <cell X="0" Y="2">T<sub>2</sub>el</cell>
          </ROWS>
  </TABLE>
</document>

Thank You all for any advice!!!
Norm


__________________________________________________________________
Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/

Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/


 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.