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

Re: MSXML 3.0 XSLT. Does it work?

Subject: Re: MSXML 3.0 XSLT. Does it work?
From: sotiris@xxxxxxxxxx
Date: Wed, 12 Jul 2000 11:31:32 +0300
miffile
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">&lt;MIFFile
5.0&gt;</xsl:text>
          <xsl:for-each select="RowSet">
               <xsl:text disable-output-escaping="no">&lt;MIFFile
4.0&gt;</xsl:text>
               <xsl:apply-templates/>
          </xsl:for-each>
     </xsl:template>
     <xsl:template match="ItemRecord">
          <xsl:text disable-output-escaping="no">&lt;MIFFile
3.0&gt;</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


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.