External Data/004
De Semantic MediaWiki - Sandbox
Source
External Data/004/source - excerpt from http://www.asnc.cam.ac.uk/irishglossaries/xml/Loman.xml
#get_web_data
#external_value
- Loman1
.i. lot-te .i. lotan ar tige í 7 tess indti.
- Loman2
.i. lot-te .i. lotan ar tige í 7 tess indti.
- but really should have been
<w type="hw">Lite</w> .i. lot-te .i. lotan ar tige í 7 tess indti.
- Comment with paragraph tags
Erreur : aucune variable locale « Comment » n’a été définie.
Should have rendered
<comment><p>This comment has been added</p></comment>
Conclusion
External Data's use of xpath cannot return:
- internal XML tags as part of the desired string (Loman1, Loman 2 above), where the <w></w> tags are simple ignored
- nested XML tags (here p tags) around the desired string, which simple triggers an error message