xslt-1.0

Numbering placeholders sequentially in a node, based on sequence in which they appear in a preceding node

萝らか妹 提交于 2020-01-17 02:43:05
问题 I have the following snippet of XML, which I would like to transform using XSLT: <?xml version="1.0" encoding="utf-8"?> <tmx version="1.4"> <body> <tu> <prop type="x-Context">-2050338055591740051, -2050338055591740051</prop> <prop type="x-Origin">TM</prop> <prop type="x-ConfirmationLevel">Translated</prop> <tuv xml:lang="en-US"> <seg>The text <ph x="0" type="QIAsymphony" /> goes <ph x="0" type="470" /> here <ph x="0" type="471" />.</seg> </tuv> <tuv xml:lang="es-ES"> <seg>El texto <ph x="0"

XSL Transform with three source documents to create report

邮差的信 提交于 2020-01-16 18:17:46
问题 I'm having difficulty creating an xsl transformation. My three source documents are similar to: <dsQueryResponse> <Workgroup> <Items> <Item WorkgroupID="4001" WorkgroupCenter="Center1"/> <Item WorkgroupID="4002" WorkgroupCenter="Center1"/> <Item WorkgroupID="4003" WorkgroupCenter="Center2"/> </Items> </Workgroup> <Staff> <Items> <Item StaffName="Anne Jones" StaffCenter="Center1" StaffID="AJ1" /> <Item StaffName="Bill Smith" StaffCenter="Center1" StaffID="BS1" /> <Item StaffName="Charles

XSL Transform with three source documents to create report

旧巷老猫 提交于 2020-01-16 18:17:30
问题 I'm having difficulty creating an xsl transformation. My three source documents are similar to: <dsQueryResponse> <Workgroup> <Items> <Item WorkgroupID="4001" WorkgroupCenter="Center1"/> <Item WorkgroupID="4002" WorkgroupCenter="Center1"/> <Item WorkgroupID="4003" WorkgroupCenter="Center2"/> </Items> </Workgroup> <Staff> <Items> <Item StaffName="Anne Jones" StaffCenter="Center1" StaffID="AJ1" /> <Item StaffName="Bill Smith" StaffCenter="Center1" StaffID="BS1" /> <Item StaffName="Charles

merging multiple attribute nodes with same value

此生再无相见时 提交于 2020-01-16 08:30:11
问题 Can you please help me on how to do this xml: The xml looks like <a name="hr_1" id="hr"> <text>11</text> </a> <a name="hr_2" id="hr"> <text>12</text> </a> <a name="hre_1" id ="hre"> <text>11</text> </a> <a name="hre_2" id ="hre"> <text>12</text> </a> expected output:The transformed output is expected like below <b name ="hr"> <value>11</value> <value>12</value> </b> <b name ="hre"> <value>11</value> <value>12</value> </b> 回答1: From comment: Thank you so much... How can i do it in xslt 1.0..

merging multiple attribute nodes with same value

≯℡__Kan透↙ 提交于 2020-01-16 08:30:09
问题 Can you please help me on how to do this xml: The xml looks like <a name="hr_1" id="hr"> <text>11</text> </a> <a name="hr_2" id="hr"> <text>12</text> </a> <a name="hre_1" id ="hre"> <text>11</text> </a> <a name="hre_2" id ="hre"> <text>12</text> </a> expected output:The transformed output is expected like below <b name ="hr"> <value>11</value> <value>12</value> </b> <b name ="hre"> <value>11</value> <value>12</value> </b> 回答1: From comment: Thank you so much... How can i do it in xslt 1.0..

Removing double quotes in XSL

我与影子孤独终老i 提交于 2020-01-16 04:54:07
问题 I am using XSL 1.0, I have this kind of XML- <ID>"7080"</ID> <NAME>"Media"</NAME> <ADDRESS> <STREET_1>"400 Street"</STREET_1> </ADDRESS> The values are coming with Double Quotes. I am trying to remove these double quotes in XSL 1.0 and show up my Result as: <ID>7080</ID> <NAME>Media</NAME> <ADDRESS> <STREET_1>400 Street</STREET_1> </ADDRESS> Also, I have tried it to apply translate function to the root element of the XML but it isn't working. Any suggestion would help! 回答1: You can use

Importing xml with nested nodes into Access (and needing to transform the xml into a 'flat' structure with xsl)

梦想与她 提交于 2020-01-15 09:52:56
问题 Desperately trying and failing to import some data into Access that comprises of various nested nodes that on import are being put into separate tables when I only desire to have one. I just would like to have the Activity table with all the data in the nested nodes to be in this parent table. I've tried adjusting some code from a previous similar question but my attempt appears hopeless as it is not even pulling any information from the 'Activity' table, however it has created the 'AttID'

Expanding datetime ranges in XSLT 1.0

你说的曾经没有我的故事 提交于 2020-01-15 07:43:06
问题 I have an XML feed of events whose dates I would like to interact with. Source XML: <?xml version="1.0" encoding="UTF-8"?> <events> <event> <!-- various elements --> <start_datetime value="2012-02-09 10:00:00"/> <end_datetime value="2012-02-09 11:00:00"/> <!-- various elements --> </event> <event> <!-- various elements --> <start_datetime value="2012-02-09 10:00:00"/> <end_datetime value="2012-02-10 15:00:00"/> <!-- various elements --> </event> <!-- other events --> </events> Notice that

Expanding datetime ranges in XSLT 1.0

百般思念 提交于 2020-01-15 07:42:17
问题 I have an XML feed of events whose dates I would like to interact with. Source XML: <?xml version="1.0" encoding="UTF-8"?> <events> <event> <!-- various elements --> <start_datetime value="2012-02-09 10:00:00"/> <end_datetime value="2012-02-09 11:00:00"/> <!-- various elements --> </event> <event> <!-- various elements --> <start_datetime value="2012-02-09 10:00:00"/> <end_datetime value="2012-02-10 15:00:00"/> <!-- various elements --> </event> <!-- other events --> </events> Notice that

Remove embedded html tags with xslt

不羁岁月 提交于 2020-01-14 06:12:27
问题 My input xml has embedded html tags in Emp_Name and Country Elements and I need to strip off only html tags to get the below desired output. Could you please assist how this can be achieved in XSLT. Input XML: <root> <Record> <Emp_ID>288237</Emp_ID> <Emp_Name> <br>John</br></Emp_Name> <Country><p>US</p></Country> <Manager>Wills</Manager> <Join_Date>5/12/2014</Join_Date> <Experience>9 years</Experience> <Project>abc</Project> <Skill>java</Skill> </Record> Desired Output: <root> <Record> <Emp