Originally posted by JiaPei Jen:
Second, the book says that the <Description> element requires an explicit prefix to remain in the Inv namespace, instead of being considered part of the newly declared XHTML default namespace. (I understand this part.)
I guess u missed here.Bescause if could have understand this point then you could have not comeup with the second questions?
Any unqualified element names within (and including) <Description> would not belong to any default namespace."
True: Because the Description element declares a new namespace for its childs which is "http://www.w3.org/1999/xhtml",since its directly declares a namespace without a specific qualifier,all the unqualified elements within the Description elements will belong to
http://www.w3.org/1999/xhtml and not to default namespace declared at root of the element Toysco.
I am confused. Does xmlns="" also disables And does not belong to any default namespace? I think that the explicit prefix Inv makes in the Inv namespace.
Regarding your question,
First, do we really need the explicit prefix for <Inv:Name>Chess set</Inv:Name Actually no,but with out that prefix u can't tell whether the name is a customer name or product name.This helps both Human(?) and XSLT.
Hope this helps,if not please questions us.
Regards
Balaji