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

Re: Transforming an XML document linked to a XML schem

Subject: Re: Transforming an XML document linked to a XML schema
From: Joerg Pietschmann <joerg.pietschmann@xxxxxx>
Date: Wed, 30 Jan 2002 10:21:05 +0100
linked select elements
"Purnima Fernando" <Purnima.Fernando@xxxxxxxxxxxxxxxxxxx> wrote:
> The problem is that if apply the style sheet to the document with the Schema
> information in it. It does not perform the transformation. But once I remove
> the schema information it works fine.

That's most likely a namespace problem, not directly related
to the fact that you have a schema associated:

> <bpxml version="1.0" xmlns="http://www.todaysystems.com.au"
                       ^^^^^^
This puts all unqualified elements in a namespace. If
you have something like
  <xsl:template match="bpxml">
in you style sheet, it won't match anything, even if you
have copied the namespace declaration into your stylesheet.
In order to match or select elements from your document, you
have to prefix them in the style sheet:

 <xsl:stylesheet version="1.0" xmlns:xsl="..."
   xmlns:d="http://www.todaysystems.com.au" ...>
 ...
  <xsl:template match="d:bpxml">
   ...
    ... select="/d:bpxml[...]"...

HTH
J.Pietschmann

 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.