作者:专注自由近_515 | 来源:互联网 | 2023-09-13 03:23
IneedtoreplacetheIconstylehrefinkmlfiles.Imhavingtroublegettingtherightxsltwritten
I need to replace the Iconstyle href in kml files. I'm having trouble getting the right xslt written for the following:
我需要替换kml文件中的Iconstyle href。我无法为以下内容编写正确的xslt:
Pseudocode:
伪代码:
Select all href found in InconStyle If href|text() = "y" then replace with "x" (where y and x are a list of mappings.)
选择在InconStyle中找到的所有href如果href | text()=“y”,则替换为“x”(其中y和x是映射列表。)
Then output the whole document again, with the changes.
然后再次输出整个文档,并进行更改。
XML block example:
XML块示例:
Expected output from the above xml:
上述xml的预期输出:
The xslt tried:
xslt尝试过:
1 个解决方案