Altova Mailing List Archives

[xsl] searching string! Need your help

From: normbishop1@------------
Date: 5/21/2002 5:37:00 PM

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

I think my problem is very simple but I am having trouble making it to 
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 
(The xml file is well-formed but not the .fo file.  )

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

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

<xsl:template match="document//*">
<xsl:variable name="curNode" select="."/>
  <xsl:choose>           <xsl:when 
               <xsl:text>FOUND SUPER </xsl:text>
            <xsl:text>NO LUCK</xsl:text>
       </xsl:otherwise>                           </xsl:choose>

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>
              <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>

Thank You all for any advice!!!

Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with Shop@Netscape!

Get your own FREE, personal Netscape Mail account today at

 XSL-List info and archive:


These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.