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

RE: Using document() and XPath to extract data from mu

Subject: RE: Using document() and XPath to extract data from multiple namespaces in multiple files
From: "SORENS,MICHAEL (HP-Boise,ex1)" <michael.sorens@xxxxxx>
Date: Thu, 14 Aug 2003 15:24:34 -0400
ex1 document
I received two identical suggestions to solve this issue--and they fix
it--but I am still scratching the little mental block up there on the top of
my head...
.
The suggestion was to change this:

<xsl:template match="/files">
	<cc:myDoc
		xmlns:cc="stuff.com"
		xmlns="http://www.w3.org/1999/xhtml"
		xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
		. . .

To this:
<xsl:template match="/files">
	<cc:myDoc
		xmlns:cc="stuff.com"
		xmlns="http://www.w3.org/1999/xhtml"
		xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
		xmlns:xhtml="http://www.w3.org/1999/xhtml"
		. . .

That is, adding an explicit namespace identifier for the xhtml namespace,
then using the "xhtml:" prefix to access the nodes. But since I already have
the xhtml namespace above as the default namespace (xmlns="..."),  why
doesn't an unadorned node name go into that namespace already?


 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.