Yesterday I added new metadata elements to my documents. Because the child elements can exist in other locations in the document, I'm using a namespace to differentiate them. The nodes look like this:
<mf:taxonomy xmlns:mf="http://greenwood.com/metadata/fragment"> <booktitle>This Is My Book Title: Second Edition</booktitle> <pubyear>2008</pubyear> <entryCode>D3592E</entryCode> <Heading browseid="Business and Economics_BE^0" headingID="BE">Business and Economics</Heading> <Authors> <author alphaid="D" authorId="143869" browseid="Doe, John_143869"> <authorsort>Doe, John</authorsort> <firstname>John</firstname> <middlename/> <lastname>Doe</lastname> <role>Author</role> <rank>1</rank> </author> </Authors> </mf:taxonomy> My expectation here is that not only will <taxonomy> be in the namespace "http://greenwood.com/metadata/fragment" but so will all the child elements. When I query this I can declare the namespace and get a handle on mf:taxonomy elements, but I can't address the child elements with mf:booktitle as I expected, for example. I have to leave off the namespace prefix. What am I missing on this one? Also, I have indexes setup based on the expectation that the child elements will be in that namespace. For example, I have a string element range index where the namespace is http://greenwood.com/metadata/fragment and the local names are set to booktitle, Heading, entryCode, authorsort. If I can't use the namespace in the query, I'm assuming that the namespace setting here is incorrect as well? Thanks, Mattio _______________________________________________ General mailing list [email protected] http://xqzone.com/mailman/listinfo/general
