I'm creating RDF content with a SparqlMotion script that uses
IterateOverXPath and BindByXPath to do my dirty work.  Here's a
snippet of the XML file I'm working with:

<xmi:XMI xmi:version="2.1" xmlns:uml="http://schema.omg.org/spec/UML/
2.0" xmlns:xmi="http://schema.omg.org/spec/XMI/2.1";>
        <xmi:Documentation exporter="Enterprise Architect"
exporterVersion="6.5"/>
        <uml:Model xmi:type="uml:Model" name="EA_Model" visibility="public">
                <ownedMember xmi:id="EAPK_A22D32E2_8A12_4354_AADA_8EBE9CF24EF9"
name="WxCloud">
                        <ownedElement  
xmi:id="EAID_A33D2AAC_4F89_478b_8158_85ADCFA38B48"/>

Using the 'Set XPath' route in my Iterate and Bind modules, I end up
with these XPath expressions:

xmi:XMI/uml:Model/ownedMember/ownedMember
./attribute::xmi:id

The problem is, these XPath expressions fail to work.  By chance, I
decided that removing the namespace prefixes would be profitable, and
indeed these following XPath expressions work:

XMI/Model/ownedMember/ownedElement
./attribute::id

Am I right in generalizing this case to believe that namespaces are
verboten in TBC XPath expressions?  Is this a bug or a feature?
-Ryan

-- 
You received this message because you are subscribed to the Google
Group "TopBraid Suite Users", the topics of which include TopBraid Composer,
TopBraid Live, TopBraid Ensemble, SPARQLMotion and SPIN.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/topbraid-users?hl=en

Reply via email to