xslt-1.0

How to convert a text file into a hiararchical arrangement using xslt 1.0

倖福魔咒の 提交于 2019-12-24 11:34:08
问题 I have a text file, entries are separated by a carriage return and line feed. One entry for each tree number and the corresponding heading and the heading is separated from the tree number by a semi-colon. Sample Text from File Body Regions;A01 Anatomic Landmarks;A01.111 Breast;A01.236 Mammary Glands, Human;A01.236.249 Nipples;A01.236.500 Extremities;A01.378 Amputation Stumps;A01.378.100 Lower Extremity;A01.378.610 Buttocks;A01.378.610.100 Foot;A01.378.610.250 Ankle;A01.378.610.250.149

How to find index position for group line item in xsl

自作多情 提交于 2019-12-24 10:27:13
问题 Could anyone help me? Input XML: <dataXML> <Items> <itemLine> <lineNo>1</lineNo> <lineRefNo>001</lineRefNo> <lineDes>test1</lineDes> </itemLine> <itemLine> <lineNo>6</lineNo> <lineRefNo>003</lineRefNo> <lineDes>test6</lineDes> </itemLine> <itemLine> <lineNo>4</lineNo> <lineRefNo>002</lineRefNo> <lineDes>test4</lineDes> </itemLine> <itemLine> <lineNo>3</lineNo> <lineRefNo>002</lineRefNo> <lineDes>test3</lineDes> </itemLine> <itemLine> <lineNo>7</lineNo> <lineRefNo>003</lineRefNo> <lineDes

Row value is not available in javascript

[亡魂溺海] 提交于 2019-12-24 09:57:41
问题 After referring the following two references, I have created a javascript function in XSL template. The javascript is getting called and an alert is appearing. But the value of CountID is coming as empty in the alert though it has value in html. What change do we need to do to alert the CountID? Note: This is in an ASP.Net project and I am using Visual Studio 2005 Note: This is an existing project and I am new to XSLT (though I have knowledge on javascript,xml, kendoui, html5, etc.)

Parallel iteration over XML nodes with XSLT

女生的网名这么多〃 提交于 2019-12-24 08:58:03
问题 I have an XML of this kind: <xml> <node1>1.1</node1> <node1>1.2</node1> <node1>1.3</node1> <node2>2.1</node2> <node2>2.2</node2> <node2>2.3</node2> <node3>3.1</node3> <node3>3.2</node3> <node3>3.3</node3> </xml> and I want to get the following output: line: 1.1 + 2.1 + 3.1 line: 1.2 + 2.2 + 3.2 line: 1.3 + 2.3 + 3.3 Is there a way I can iterate over these nodes simultaneously and keep track of my current position in each of three lists or do I have to wrap these items into a bigger block and

Change format of comma delimited tags in xml using xslt?

廉价感情. 提交于 2019-12-24 08:56:20
问题 I have an xml doc that contains comma delimited tags like this... <?xml version="1.0" encoding="utf-8" ?> <pages> <page> <tags>AAMC 2013, Learning Health System, Cost</tags> </page> <page> <tags>AAMC 2013, Cost, Innovation</tags> </page> <page> <tags>AAMC 2013, Cost, Innovation</tags> </page> </pages> Is it possible, using xslt, to change the xml to display more like the code below where it separates the tag name and counts how many times the tag is referenced? <?xml version="1.0" encoding=

XslCompiledTransform.Load(type) : Could not load file or assembly 'System.Data.SqlXml

雨燕双飞 提交于 2019-12-24 08:55:45
问题 I am trying to load compiled XSL (using XSLTC.exe) in my .net core 2.0 solution but getting below error. System.IO.FileNotFoundException: 'Could not load file or assembly 'System.Data.SqlXml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. The system cannot find the file specified.' Assembly asm = Assembly.LoadFrom(@"..."); Type t = asm.GetType("..."); myXslTransform.Load(t); The documentation says that, it should load file generated from XSLTC.exe but not working. Is

Normalize space issue with html tags

北战南征 提交于 2019-12-24 08:34:38
问题 Here's one for you XSLT gurus :-) I have to deal with XML output from a Java program I cannot control. In the docs outputted by this app the html tags remain as <u><i><b><em> etc, instead of <u><i><b><em> and so on. That's not a massive problem, I use XSLT to fix that, but using normalize-space to remove excess whitespace also removes spaces before these html tags. Example <Locator Precode="7"> <Text LanguageId="7">The next word is <b>bold</b> and is correctly spaced around the html tag, but

Please refer to question “ Escape backslash in XML and split as separate xml node using XSLT”

半城伤御伤魂 提交于 2019-12-24 08:08:02
问题 I need to convert the following XML to desired output- <?xml version="1.0" encoding="UTF-8"?> <properties> <entry> <key>first_node/P_NODE</key> <value> <genericData> <identifier>first_node/P_NODE</identifier> <properties> <entry> <key>second_node</key> <value>2</value> </entry> <entry> <key>third_node/fourth_node/fifth_node</key> <value>345</value> </entry> <entry> <key>sixth_node/seventh_node</key> <value>67</value> </entry> <entry> <key>eigth_node</key> <value>8</value> </entry> <entry>

Change output based on value in xsl:key in XSLT 1.0

吃可爱长大的小学妹 提交于 2019-12-24 07:55:29
问题 I have a fairly large (270mb) XML file that I need to group, sort, and run multiple transforms on. Input XML: <!-- language: lang-xml --> <?xml version="1.0" encoding="UTF-8" standalone="no"?> <EligibilityRecords xmlns="http://Eligibility_LSDD"> <Eligibility_Detail_Record xmlns=""> <PT_PARTICIPANT_FILE_IMP_ID></PT_PARTICIPANT_FILE_IMP_ID> <PT_LST_NM>VALLE</PT_LST_NM> <PT_FRST_NM>FRANKIE</PT_FRST_NM> <EN_PLAN_NAME>Health Reimbursement Arrangement</EN_PLAN_NAME> <EN_MBRSHP_EFF_STRT_DT>01012017<

In XSLT, many to many attributes comparing in for-each condition

天涯浪子 提交于 2019-12-24 07:19:17
问题 Using XSLT 1.0 Is it possible to filter many to many attributes, i mean as below example: "../../../../fieldmap/field[@name" i.e. more then 1 elements as fieldmap containing "field/@name" attribute are exists and it is comparing with definition/@title and there too more then one definition element exists containing @title. EXAMPLE: <xsl:for-each select="../../../../fieldmaps/field[@name=../destination/@title]"> Can you please suggest me how it could possible to achieve -- if field containing