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

root node template - unmatching pattern?

Subject: root node template - unmatching pattern?
From: Chizzolini Stefano <chist@xxxxxx>
Date: Tue, 23 Nov 2004 18:09:50 +0100
chad thatcher
Hi all

I'm struggling with the following (ridiculous) piece of style:

<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet
 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
 xmlns:o="http://www.xyz.it/be"
 xmlns="http://www.xyz.it/pdflib/tfl"
 exclude-result-prefixes="o"
 version="1.0"
 >
 <xsl:output method="xml" version="1.0" encoding="iso-8859-1" indent="yes"/>
 <xsl:template match="/">
  <test>Correctly matched!</test>
 </xsl:template>
</xsl:stylesheet>

Using it to transform the following xml content, I get no output from my
processor (MSXML4):

<?xml version="1.0" encoding="ISO-8859-1"?>
<documents
 xmlns="http://www.xyz.it/consulta/xdmModel"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 >
 <document id="000190OFFCLI2004">
  <header>
   <caption>Offerta</caption>
  </header>
  <body xmlns:d="http://www.xyz.it/be">
   <d:offerta>
    <d:intestazione>
     <d:documento>
      <d:titolo>OFFERTA A CLIENTE</d:titolo>
      <d:protocollo>190</d:protocollo>
     </d:documento>
    </d:intestazione>
   </d:offerta>
  </body>
 </document>
</documents>

The awful ;-) pattern "/" (that should match the template with the content
root node) seems definitely correct (couldn't it be?).
Maybe the wrong result is due to a namespace issue?

Thanks

Stefano

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.