This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: MSXML 3.0 XSLT. Does it work?
- To: xsl-list at mulberrytech dot com
- Subject: Re: MSXML 3.0 XSLT. Does it work?
- From: sotiris at ctl dot com dot cy
- Date: Wed, 12 Jul 2000 11:31:32 +0300
- Reply-To: xsl-list at mulberrytech dot com
Hi everyone,
here is an example of my XML code and style sheet and the results in
produces using MSXML 3.0.
The stylesheet is:
<xsl:stylesheet version="1.0" xmlns:xsl
="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" indent="yes"/>
<xsl:template match="/">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="SearchSet">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="SearchResults">
<xsl:text disable-output-escaping="no"><MIFFile
5.0></xsl:text>
<xsl:for-each select="RowSet">
<xsl:text disable-output-escaping="no"><MIFFile
4.0></xsl:text>
<xsl:apply-templates/>
</xsl:for-each>
</xsl:template>
<xsl:template match="ItemRecord">
<xsl:text disable-output-escaping="no"><MIFFile
3.0></xsl:text>
</xsl:template>
</xsl:stylesheet>
The XML Code is:
<?xml-stylesheet type="text/xsl" href="testss.xsl"?>
<SearchSet xmlns="urn:schemas-microsoft-com:xml-data" xmlns:dt
="urn:schemas-microsoft-com:datatypes" xmlns:plss="urn:ctl.com:plss">
<SearchResults>
<RowSet plss:linkref="PL00000990" plss:linktype="xml">
<serno dt:dt="string">PL00000990</serno>
<hitcount dt:dt="string">1</hitcount>
<ItemRecord>
<SerNo>PL00000990</SerNo>
</ItemRecord>
</RowSet>
<RowSet plss:linkref="PL00000990" plss:linktype="xml">
<serno dt:dt="string">PL00000990</serno>
<hitcount dt:dt="string">1</hitcount>
<ItemRecord>
<SerNo>PL00000978</SerNo>
</ItemRecord>
</RowSet>
</SearchResults>
</SearchSet>
and the resultant output is:
PL000009901PL00000990PL000009901PL00000978
What I would have expected is:
<MIFFile 5.0><MIFFile 4.0><MIFFile 3.0><MIFFile4.0><MIFFile 3.0>
Can anyone tell why the above is happening? I have installed MSXML 3.0 in
"replace" mode.
Kind regards
Sotiris, CTL, Cyprus
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list