muenchian-grouping

Multiple groupings of XML nodes

风格不统一 提交于 2021-02-13 17:37:21
问题 I'm trying to group the input below by the destination and assortment values using muenchian-grouping which is new for me so I'm not sure how to do it properly. The input files will be much larger than this so performance is important. <?xml version="1.0"?> <ns0:Data xmlns:ns0="http://BizTalk_Projects.input"> <transports> <destination>destination 1</destination> <assortment>Volvo_GA961</assortment> <quantity>10</quantity> </transports> <transports> <destination>destination 1</destination>

Multiple groupings of XML nodes

与世无争的帅哥 提交于 2021-02-13 17:36:49
问题 I'm trying to group the input below by the destination and assortment values using muenchian-grouping which is new for me so I'm not sure how to do it properly. The input files will be much larger than this so performance is important. <?xml version="1.0"?> <ns0:Data xmlns:ns0="http://BizTalk_Projects.input"> <transports> <destination>destination 1</destination> <assortment>Volvo_GA961</assortment> <quantity>10</quantity> </transports> <transports> <destination>destination 1</destination>

XSLT Muenchian grouping create key inside group

喜欢而已 提交于 2021-02-05 09:40:46
问题 My goal is to group the nodes first by <RowBreak> , then in each <RowBreak> group, I want to group by <ColumnBreak> . Here is my XML. <?xml version="1.0" encoding="utf-8" ?> <Tree> <Item> <Label>Item 1</Label> </Item> <Item> <Label>Item 2</Label> </Item> <ColumnBreak /> <Item> <Label>Item 3</Label> </Item> <Item> <Label>Item 4</Label> </Item> <Item> <Label>Item 5</Label> </Item> <RowBreak /> <Item> <Label>Item 6</Label> </Item> <Item> <Label>Item 7</Label> </Item> <ColumnBreak /> <Item>

XSLT Muenchian grouping create key inside group

£可爱£侵袭症+ 提交于 2021-02-05 09:39:16
问题 My goal is to group the nodes first by <RowBreak> , then in each <RowBreak> group, I want to group by <ColumnBreak> . Here is my XML. <?xml version="1.0" encoding="utf-8" ?> <Tree> <Item> <Label>Item 1</Label> </Item> <Item> <Label>Item 2</Label> </Item> <ColumnBreak /> <Item> <Label>Item 3</Label> </Item> <Item> <Label>Item 4</Label> </Item> <Item> <Label>Item 5</Label> </Item> <RowBreak /> <Item> <Label>Item 6</Label> </Item> <Item> <Label>Item 7</Label> </Item> <ColumnBreak /> <Item>

Grouping Nodes by hardcoding node values in XSLT

若如初见. 提交于 2021-01-20 12:43:14
问题 <root> <Entry> <ID>1</ID> <Details> <Code>A1</Code> <Value>1000</Value> </Details> </Entry> <Entry> <ID>2</ID> <Details> <Code>A2</Code> <Value>2000</Value> </Details> </Entry> <Entry> <ID>3</ID> <Details> <Code>B1</Code> <Value>3000</Value> </Details> </Entry> <Entry> <ID>4</ID> <Details> <Code>B2</Code> <Value>4000</Value> </Details> </Entry> </root> I have this input XML which I am looking to group via XSLT wherein the grouping happens by hardcoding node values . Let me explain that in

muenchian grouping

China☆狼群 提交于 2020-01-10 03:13:47
问题 I was wondering how this predicate([1]), is hardcoded as 1 always in the muenchian grouping. The concept was not clear for me, after a lot of search. It is explained as the current node, is compared with the 1st group returned by the key. Why does it always compare with the first one that a key is matched? Also why are we giving contact[count(. | key('contacts-by-surname', surname)[1]) = 1], the =1 part? again 1 is hardcoded. I referred the below link http://www.jenitennison.com/xslt/grouping

Muenchian Grouping - display second level base on row count

荒凉一梦 提交于 2020-01-06 14:57:32
问题 With help of Tim from my previous post, i was able to get the Muenchian grouping working for my test xml/xsl. But while working with my actual xml i encountered a different scenario as below. The input xml looks like, reduced it for simplicity. As you see the <name>Status</name> <value>Existing</value> there are many other entries in actual xml. <message> <requisition> <data-values> <data-value multi-valued="false"> <name>Test_Grid-1.Name</name> <value>1</value> </data-value> <data-value

XSLT 1.0: grouping and removing duplicate

穿精又带淫゛_ 提交于 2020-01-01 14:41:52
问题 I have a xml grouping challenge for which I need to group AND remove duplicate as below: <Person> <name>John</name> <date>June12</date> <workTime taskID=1>34</workTime> <workTime taskID=1>35</workTime> <workTime taskID=2>12</workTime> </Person> <Person> <name>John</name> <date>June13</date> <workTime taskID=1>21</workTime> <workTime taskID=2>11</workTime> <workTime taskID=2>14</workTime> </Person> Note that for a specific occurence of name/taskID/date, only the first one is picked up. In this

XSLT 1.0: grouping and removing duplicate

梦想的初衷 提交于 2020-01-01 14:39:26
问题 I have a xml grouping challenge for which I need to group AND remove duplicate as below: <Person> <name>John</name> <date>June12</date> <workTime taskID=1>34</workTime> <workTime taskID=1>35</workTime> <workTime taskID=2>12</workTime> </Person> <Person> <name>John</name> <date>June13</date> <workTime taskID=1>21</workTime> <workTime taskID=2>11</workTime> <workTime taskID=2>14</workTime> </Person> Note that for a specific occurence of name/taskID/date, only the first one is picked up. In this