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

Re: Namespace problems

Subject: Re: Namespace problems
From: David Carlisle <davidc@xxxxxxxxx>
Date: Fri, 1 Sep 2000 10:10:24 GMT
declared but not used dtd
> The result is, confusingly,
>     ****   Namespace URI is: Null Namespace
>     Declared on element: //html***

isn't that what you'd expect?

With your modified DTD your source document is equivalent to

<html
  xmlns:oeb="http://openebook.org/namespaces/oeb-document/1.0/">
...

so the html is in the null namespace, and the oeb prefix is declared but
not used.

With the original DTD your source document is equivalent to

<html
  xmlns="http://openebook.org/namespaces/oeb-document/1.0/">
...

so the html element is in the OEB namespace and since you can only refer
to namespaced elements in xpath by using a prefix, your stylesheet has
to look like

<xsl:stylesheet
  xmlns:oeb="http://openebook.org/namespaces/oeb-document/1.0/"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"

>

...

<xsl:template match="oeb:html">
....


David


 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.