[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
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|