1

Тема: Lotus и XSL

Не хочет обрабатывать результат session.CreateDXLExporter(doc ,strm)
такой XSL в Set transformer=session.CreateXSLTransformer(xmlin, xslin, xmlout)


<?xml version='1.0' encoding='UTF-8'?>
<xsl:stylesheet version="1.0"
      xmlns:xsl="http://_.w3.org/1999/XSL/Transform">

<xsl:template match="document">
  <!--  <xsl:element name="translate(@form," \", "\")> -->
  <xsl:for-each select="item">
<xsl:choose>
<!-- Items whose names have dollars are skipped -->
<xsl:when test='contains(@name, "$")'>
   <!-- Items named SaveOptions are skipped -->
<xsl:when test='@name="SaveOptions"'>
<!-- Items starting with 'dsp' are skipped -->
<xsl:when test='starts-with(@name, "dsp"'>
<xsl:otherwise>
<xsl:element name="@name">
<xsl:value-of select="*">
<!--  </xsl:element> -->
</xsl:choose>
</xsl:for-each>
</xsl:element>

    </xsl:template>
</xsl:stylesheet>

Поделиться