User:Alex skene/scratchpad/more ext: Difference between revisions

From FOIwiki
Jump to navigationJump to search
(Created page with "== try xml == * http://www.legislation.gov.uk/ukpga/2000/36/section/11/data.xml {{#get_web_data: url=http://www.legislation.gov.uk/ukpga/2000/36/section/11/data.xml |format=...")
 
Line 7: Line 7:
|format=xml
|format=xml
|use xpath
|use xpath
|data=Text1=//*[local-name()='Text']
|data=Text1=/children('http://www.legislation.gov.uk/namespaces/legislation')//text
, text2=//*[local-name()='AffectingTitle']
}}
|}}


{{#for_external_table:<nowiki/>
{{#for_external_table:<nowiki/>
* {{{Text2}}}
*X {{{Text1}}}
}}
}}


* the legislation xml doesn't meet the SMW extension's format v well, so won't e able format properly
* the legislation xml doesn't meet the SMW extension's format v well, so won't e able format properly

Revision as of 01:50, 18 October 2012

try xml

{{#get_web_data: url=http://www.legislation.gov.uk/ukpga/2000/36/section/11/data.xml |format=xml |use xpath |data=Text1=/children('http://www.legislation.gov.uk/namespaces/legislation')//text }}

{{#for_external_table:

  • X {{{Text1}}}

}}

  • the legislation xml doesn't meet the SMW extension's format v well, so won't e able format properly