Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


[xsl] xsltproc complains about xsl:sort

From: Ed_Owen@--------------------
To:
Date: 8/3/2004 12:10:00 AM
I'm using XSLT to transform some XML output from Doxygen into WordML,
Microsoft's XML schema for Word documents.

I've been using Altova's XMLSpy to create the XSLT and to do the actual
transform.

This works great, but I am seeing some weird things where certain elements
that appear in the source XML tree once are getting processed twice.

For a sanity check, I tried to do the transformation using xsltproc
instead. When I did that, I got the following run-time error for just about
every occurrence of <xsl:sort> in my XSLT:

      runtime error: file sce-rt2.xslt line 218 element sort
      xsl:sort : improper use this should not be reached

XMLSpy has no such trouble, and I'm fairly certain everything is
well-formed and happy. Here's the offending line 218 and surrounding from
my XSLT:

      <xsl:for-each select="sectiondef/memberdef">
            <xsl:sort select="name"/>
                  <w:tr>
                        <w:tblPrEx><w:tblCellMar><w:top w:w="0"
w:type="dxa"/><w:bottom w:w="0" w:type="dxa"/></w:tblCellMar></w:tblPrEx>
      [snip]
                        <xsl:value-of select="@id"/>
      [snip]
                        <w:t><xsl:value-of select="name"/></w:t>
                        <xsl:apply-templates select="briefdescription"/>
                  </w:tr>
      </xsl:for-each>

The xml file being transformed is rather large (1.5 MB), but not incredibly
so. With XMLSpy, the resulting XML file runs 6 MB+ (yay WordML).

I'm running Windows 2000. This happens with both xsltproc 1.1.7 and 1.1.8.

Any ideas or similar experiences would be appreciated. I've checked the
various archives and bug lists and don't see this documented (or I missed
it).

thanks,
Ed


transparent
Print
Mail
Like It
Disclaimer
.

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 www.altova.com/list/index.html. 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.

.
.

transparent

transparent