[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
RE: [xml-dev] namespace question
- From: "Michael Kay" <mike@saxonica.com>
- To: "'Garvin Riensche'" <g.riensche@gmx.net>,<xml-dev@lists.xml.org>
- Date: Sat, 10 Mar 2007 10:25:16 -0000
Google for "FAQ XPath default namespace".
Michael Kay
http://www.saxonica.com/
> -----Original Message-----
> From: Garvin Riensche [mailto:g.riensche@gmx.net]
> Sent: 10 March 2007 10:17
> To: xml-dev@lists.xml.org
> Subject: [xml-dev] namespace question
>
> Hi there,
>
> I am not very familar with namespaces, so it would be nice if
> someone coult help me with the following simple example:
>
> <unit xmlns="http://www.sdml.info/srcML/src">
> <namespace>
> <type_decl id="CB;" name="B" type="class">
> ...
> </type>
> </namespace>
> </unit>
>
> This is part of the xml that is produced by srcML, a tool for
> converting Java to XML. As you can see srcML has its own
> namespace. My question is, how i can adress parts of the
> subtree with XPath from an XSLT Stylesheet. For example:
>
> <xsl:copy-of select="/unit/namespace"/>
>
> doesn't return anything. But if i delete the xmlns attribute
> the tree below "<namespace>" is returned.
>
> Regards,
> Garvin
>
> ______________________________________________________________
> _________
>
> XML-DEV is a publicly archived, unmoderated list hosted by
> OASIS to support XML implementation and development. To
> minimize spam in the archives, you must subscribe before posting.
>
> [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
> Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
> subscribe: xml-dev-subscribe@lists.xml.org List archive:
> http://lists.xml.org/archives/xml-dev/
> List Guidelines: http://www.oasis-open.org/maillists/guidelines.php
>
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]