Skip to content

Commit

Permalink
Copy&Paste error: target attribute not generated
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaskrause committed Aug 15, 2024
1 parent ff2d72a commit 59fd49b
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 26 deletions.
2 changes: 1 addition & 1 deletion src/exporter/saltxml.rs
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ where
format!("//@nodes.{source_position}"),
));
attributes.push((
parse_attr_name("source")?,
parse_attr_name("target")?,
format!("//@nodes.{target_position}"),
));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ expression: result
<labels xsi:type="saltCore:SFeature" namespace="salt" name="SNAME" value="doc2"/>
<labels xsi:type="saltCore:SMetaAnnotation" namespace="test" name="description" value="T::Another demo corpus"/>
</nodes>
<edges xsi:type="sCorpusStructure:SCorpusDocumentRelation" source="//@nodes.1" source="//@nodes.2" layer="//@layers.1"/>
<edges xsi:type="sCorpusStructure:SCorpusDocumentRelation" source="//@nodes.1" source="//@nodes.3" layer="//@layers.1"/>
<edges xsi:type="sCorpusStructure:SCorpusDocumentRelation" source="//@nodes.1" target="//@nodes.2" layer="//@layers.1"/>
<edges xsi:type="sCorpusStructure:SCorpusDocumentRelation" source="//@nodes.1" target="//@nodes.3" layer="//@layers.1"/>
<layers xsi:type="saltCore:SLayer" edges="//@edges.1 //@edges.2">
<labels xsi:type="saltCore:SElementId" namespace="salt" name="id" value="T::l1"/>
<labels xsi:type="saltCore:SFeature" namespace="salt" name="SNAME" value="T::annis"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,64 +54,64 @@ expression: result
<labels xsi:type="saltCore:SFeature" namespace="salt" name="SNAME" value="span1"/>
<labels xsi:type="saltCore:SAnnotation" namespace="default_ns" name="phrase" value="T::this example"/>
</nodes>
<edges xsi:type="sDocumentStructure:SOrderRelation" source="//@nodes.1" source="//@nodes.2" layer="//@layers.1"/>
<edges xsi:type="sDocumentStructure:SOrderRelation" source="//@nodes.2" source="//@nodes.3" layer="//@layers.1"/>
<edges xsi:type="sDocumentStructure:SOrderRelation" source="//@nodes.3" source="//@nodes.4" layer="//@layers.1"/>
<edges xsi:type="sDocumentStructure:SOrderRelation" source="//@nodes.4" source="//@nodes.5" layer="//@layers.1"/>
<edges xsi:type="sDocumentStructure:SOrderRelation" source="//@nodes.5" source="//@nodes.6" layer="//@layers.1"/>
<edges xsi:type="sDocumentStructure:SOrderRelation" source="//@nodes.6" source="//@nodes.7" layer="//@layers.1"/>
<edges xsi:type="sDocumentStructure:SOrderRelation" source="//@nodes.7" source="//@nodes.8" layer="//@layers.1"/>
<edges xsi:type="sDocumentStructure:SOrderRelation" source="//@nodes.8" source="//@nodes.9" layer="//@layers.1"/>
<edges xsi:type="sDocumentStructure:SOrderRelation" source="//@nodes.9" source="//@nodes.10" layer="//@layers.1"/>
<edges xsi:type="sDocumentStructure:SOrderRelation" source="//@nodes.10" source="//@nodes.11" layer="//@layers.1"/>
<edges xsi:type="sDocumentStructure:SSpanningRelation" source="//@nodes.12" source="//@nodes.2"/>
<edges xsi:type="sDocumentStructure:SSpanningRelation" source="//@nodes.12" source="//@nodes.3"/>
<edges xsi:type="sDocumentStructure:SOrderRelation" source="//@nodes.1" target="//@nodes.2" layer="//@layers.1"/>
<edges xsi:type="sDocumentStructure:SOrderRelation" source="//@nodes.2" target="//@nodes.3" layer="//@layers.1"/>
<edges xsi:type="sDocumentStructure:SOrderRelation" source="//@nodes.3" target="//@nodes.4" layer="//@layers.1"/>
<edges xsi:type="sDocumentStructure:SOrderRelation" source="//@nodes.4" target="//@nodes.5" layer="//@layers.1"/>
<edges xsi:type="sDocumentStructure:SOrderRelation" source="//@nodes.5" target="//@nodes.6" layer="//@layers.1"/>
<edges xsi:type="sDocumentStructure:SOrderRelation" source="//@nodes.6" target="//@nodes.7" layer="//@layers.1"/>
<edges xsi:type="sDocumentStructure:SOrderRelation" source="//@nodes.7" target="//@nodes.8" layer="//@layers.1"/>
<edges xsi:type="sDocumentStructure:SOrderRelation" source="//@nodes.8" target="//@nodes.9" layer="//@layers.1"/>
<edges xsi:type="sDocumentStructure:SOrderRelation" source="//@nodes.9" target="//@nodes.10" layer="//@layers.1"/>
<edges xsi:type="sDocumentStructure:SOrderRelation" source="//@nodes.10" target="//@nodes.11" layer="//@layers.1"/>
<edges xsi:type="sDocumentStructure:SSpanningRelation" source="//@nodes.12" target="//@nodes.2"/>
<edges xsi:type="sDocumentStructure:SSpanningRelation" source="//@nodes.12" target="//@nodes.3"/>
<nodes xsi:type="sDocumentStructure:STextualDS">
<labels xsi:type="saltCore:SElementId" namespace="salt" name="id" value="T::salt:/root/doc1#sText1"/>
<labels xsi:type="saltCore:SFeature" namespace="salt" name="SNAME" value="sText1"/>
<labels xsi:type="saltCore:SFeature" namespace="saltCommon" name="SDATA" value="T::Is this example more complicated than it appears to be?"/>
</nodes>
<edges xsi:type="sDocumentStructure:STextualRelation" source="//@nodes.1" source="//@nodes.13">
<edges xsi:type="sDocumentStructure:STextualRelation" source="//@nodes.1" target="//@nodes.13">
<labels xsi:type="saltCore:SFeature" namespace="salt" name="SSTART" value="T::0"/>
<labels xsi:type="saltCore:SFeature" namespace="salt" name="SEND" value="T::2"/>
</edges>
<edges xsi:type="sDocumentStructure:STextualRelation" source="//@nodes.2" source="//@nodes.13">
<edges xsi:type="sDocumentStructure:STextualRelation" source="//@nodes.2" target="//@nodes.13">
<labels xsi:type="saltCore:SFeature" namespace="salt" name="SSTART" value="T::3"/>
<labels xsi:type="saltCore:SFeature" namespace="salt" name="SEND" value="T::7"/>
</edges>
<edges xsi:type="sDocumentStructure:STextualRelation" source="//@nodes.3" source="//@nodes.13">
<edges xsi:type="sDocumentStructure:STextualRelation" source="//@nodes.3" target="//@nodes.13">
<labels xsi:type="saltCore:SFeature" namespace="salt" name="SSTART" value="T::8"/>
<labels xsi:type="saltCore:SFeature" namespace="salt" name="SEND" value="T::15"/>
</edges>
<edges xsi:type="sDocumentStructure:STextualRelation" source="//@nodes.4" source="//@nodes.13">
<edges xsi:type="sDocumentStructure:STextualRelation" source="//@nodes.4" target="//@nodes.13">
<labels xsi:type="saltCore:SFeature" namespace="salt" name="SSTART" value="T::16"/>
<labels xsi:type="saltCore:SFeature" namespace="salt" name="SEND" value="T::20"/>
</edges>
<edges xsi:type="sDocumentStructure:STextualRelation" source="//@nodes.5" source="//@nodes.13">
<edges xsi:type="sDocumentStructure:STextualRelation" source="//@nodes.5" target="//@nodes.13">
<labels xsi:type="saltCore:SFeature" namespace="salt" name="SSTART" value="T::21"/>
<labels xsi:type="saltCore:SFeature" namespace="salt" name="SEND" value="T::32"/>
</edges>
<edges xsi:type="sDocumentStructure:STextualRelation" source="//@nodes.6" source="//@nodes.13">
<edges xsi:type="sDocumentStructure:STextualRelation" source="//@nodes.6" target="//@nodes.13">
<labels xsi:type="saltCore:SFeature" namespace="salt" name="SSTART" value="T::33"/>
<labels xsi:type="saltCore:SFeature" namespace="salt" name="SEND" value="T::37"/>
</edges>
<edges xsi:type="sDocumentStructure:STextualRelation" source="//@nodes.7" source="//@nodes.13">
<edges xsi:type="sDocumentStructure:STextualRelation" source="//@nodes.7" target="//@nodes.13">
<labels xsi:type="saltCore:SFeature" namespace="salt" name="SSTART" value="T::38"/>
<labels xsi:type="saltCore:SFeature" namespace="salt" name="SEND" value="T::40"/>
</edges>
<edges xsi:type="sDocumentStructure:STextualRelation" source="//@nodes.8" source="//@nodes.13">
<edges xsi:type="sDocumentStructure:STextualRelation" source="//@nodes.8" target="//@nodes.13">
<labels xsi:type="saltCore:SFeature" namespace="salt" name="SSTART" value="T::41"/>
<labels xsi:type="saltCore:SFeature" namespace="salt" name="SEND" value="T::48"/>
</edges>
<edges xsi:type="sDocumentStructure:STextualRelation" source="//@nodes.9" source="//@nodes.13">
<edges xsi:type="sDocumentStructure:STextualRelation" source="//@nodes.9" target="//@nodes.13">
<labels xsi:type="saltCore:SFeature" namespace="salt" name="SSTART" value="T::49"/>
<labels xsi:type="saltCore:SFeature" namespace="salt" name="SEND" value="T::51"/>
</edges>
<edges xsi:type="sDocumentStructure:STextualRelation" source="//@nodes.10" source="//@nodes.13">
<edges xsi:type="sDocumentStructure:STextualRelation" source="//@nodes.10" target="//@nodes.13">
<labels xsi:type="saltCore:SFeature" namespace="salt" name="SSTART" value="T::52"/>
<labels xsi:type="saltCore:SFeature" namespace="salt" name="SEND" value="T::54"/>
</edges>
<edges xsi:type="sDocumentStructure:STextualRelation" source="//@nodes.11" source="//@nodes.13">
<edges xsi:type="sDocumentStructure:STextualRelation" source="//@nodes.11" target="//@nodes.13">
<labels xsi:type="saltCore:SFeature" namespace="salt" name="SSTART" value="T::54"/>
<labels xsi:type="saltCore:SFeature" namespace="salt" name="SEND" value="T::55"/>
</edges>
Expand Down

0 comments on commit 59fd49b

Please sign in to comment.