Subject: Re: [xsl] XPath - accessing nodes with a namespace with no prefix From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Fri, 04 Dec 2009 17:17:25 -0500 |
This is a pure xpath question.
Suppose I have a namespace declaration like this:
<organizations version="1.0" xmlns="http://www.imsglobal.org/xsd/imscp_v1p1">
The namespace does not have a prefix.
I want to use local-name() to access the nodes
but not sure how. For example, how do I access a path like this:
XPATH:
/organizations/organization/title[2]/title
xmlns:ims="http://www.imsglobal.org/xsd/imscp_v1p1" ... /ims:organizations/ims:organization/ims:title[2]/ims:title
XML:
<organizations version="1.0" xmlns="http://www.imsglobal.org/xsd/imscp_v1p1">
<organization>
<title>SCORM 2004 4th Edition Manifest Basics Content Example 1.0</title>
...
-- XSLT/XQuery/XPath training after http://XMLPrague.cz 2010-03-15/19 Vote for your XML training: http://www.CraneSoftwrights.com/s/i/ Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ Training tools: Comprehensive interactive XSLT/XPath 1.0/2.0 video Video lesson: http://www.youtube.com/watch?v=PrNjJCh7Ppg&fmt=18 Video overview: http://www.youtube.com/watch?v=VTiodiij6gE&fmt=18 G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Male Cancer Awareness Nov'07 http://www.CraneSoftwrights.com/s/bc Legal business disclaimers: http://www.CraneSoftwrights.com/legal
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] XPath - accessing nodes with , Philip Vallone | Thread | Re: [xsl] XPath - accessing nodes w, Philip Vallone |
[xsl] XPath - accessing nodes with , Philip Vallone | Date | Re: [xsl] XPath - accessing nodes w, Markus Flatscher |
Month |