xslt-3.0

xslt Merge children of 2 parents and Store in a variable

大城市里の小女人 提交于 2019-12-24 19:37:28
问题 I receive an xml input like this: <root> <Tuple1> <child11></child11> <child12></child12> <child13></child13> </Tuple1> <Tuple1> <child11></child11> <child12></child12> </Tuple1> <Tuple2> <child21></child21> <child22></child22> </Tuple2> <Tuple2> <child21></child21> <child22></child22> <child23></child23> </Tuple2> </root> How can I merge the children of each Tuple1 with children of Tuple2 and store them in a variable that will be used in the rest of xslt document? First tuple1 will be merged

Does the name of the xsl:template effects the result of function fn:key,and why? thanks a lot

橙三吉。 提交于 2019-12-24 19:33:26
问题 I find a appearance , that I can't get a correct result with fn:key function in a template which has a name attribute. When I just delete the name attribute of xsl:template, the result are right. That amazes me. Would somebody like to tell the reason? thanks. <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:rel="http:/

XSLT converting style down from 3.0 to 2.0 - variable reference error

怎甘沉沦 提交于 2019-12-24 12:29:42
问题 I have a large XSL 3.0 stylesheet which I need to convert to XSL 2.0. It seems there is one error repeated throughout the document, but I'm not sure how to fix it. For example, in XSL 3.0 I declare these variables: <xsl:variable name="glosspath" select="/tei:TEI/tei:text//tei:add"/> <xsl:variable name="apppath" select="/tei:TEI/tei:text//tei:del | /tei:TEI/tei:text//tei:surplus | /tei:TEI/tei:text//tei:supplied[@reason='added'] | /tei:TEI/tei:text//tei:choice[@style='sic'] | /tei:TEI/tei:text

Is there XSLT 2.0 or 3.0 support in BizTalk Server 2016 mapping?

天涯浪子 提交于 2019-12-24 07:07:36
问题 In the past, BizTalk (and the .NET framework in general) has not supported any XSLT version besides 1.0. Our company is about to upgrade to BizTalk Server 2016, and I was wondering whether it's possible (and natively supported) to use XSLT 2.0 or 3.0 for custom mapping in said BizTalk Server version? I know it's not likely they've implemented this, but I've been roaming the internet and I can't seem to find a concrete answer to this question. 回答1: No, it only supports XSLT 1.0. However it has

XSLT 3.0 partial streaming (Saxon)

旧城冷巷雨未停 提交于 2019-12-24 00:16:13
问题 I have a big XML file (6 GB) with this kind of tree: <Report> <Document> <documentType>E</documentType> <person> <firstname>John</firstname> <lastname>Smith</lastname> </person> </Document> <Document> [...] </Document> <Document> [...] </Document> [... there are a lot of Documents] </Report> So I used the new XSLT 3.0 streaming feature, with Saxon 9.6 EE. I don't want to have the streaming constrains once in a Document. This is why I tried to used copy-of() . I think that, what I want to do,

XML - XSLT - document() function inside count() function

北城以北 提交于 2019-12-23 17:14:23
问题 I asked a similar question on another post but I decided to make this new one since this is a different problem. I am using two XML input files using the document() function to access one of them (the external file). I am trying to use the document() function inside the count() function but I don't know why it is not working... This is the XML input document: <?xml version="1.0" encoding="UTF-8"?> <parent> <childs> <child ID="1" name="John" /> <child ID="2" name="Marie"/> <child ID="3" name=

XML to JSON Transformation in XSLT 3.0 [closed]

送分小仙女□ 提交于 2019-12-20 07:48:33
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 2 years ago . I am trying to convert XML data to JSON in XSLT 3.0 using xml-to-json function. Can any one please provide me the Xslt 3.0 for the below requirement. Example XML is: <widget> <debug>on</debug> <window title="Sample Konfabulator Widget"> <name>main_window</name> <width>500</width>

append data ton an element, based on matching this exact element

给你一囗甜甜゛ 提交于 2019-12-20 03:57:11
问题 Given the following XML as input, <?xml version="1.0" encoding="UTF-8"?> <TABLE NAME="TABLE.DB"> <DATA RECORDS="2"> <RECORD ID="4"> <RECNO>0</RECNO> <SEQ>0</SEQ> <DATE>17/12/1999 2:44:08 μμ</DATE> <ID>12/11/2015 3:15:25 μμ</ID> <NUMBER>10354</NUMBER> <CN>PL</CN> <PROPERTY>0</PROPERTY> <DAYS>0</DAYS> <CURRENTSTATUS>0</CURRENTSTATUS> <TOTALS>1</TOTALS> </RECORD> <RECORD ID="3"> <RECNO>1</RECNO> <SEQ>0</SEQ> <DATE>17/12/1999 2:44:08 μμ</DATE> <ID>12/11/2015 3:15:25 μμ</ID> <NUMBER>10355</NUMBER>

sum of count in xslt-3

£可爱£侵袭症+ 提交于 2019-12-13 04:08:39
问题 Given the following example, https://xsltfiddle.liberty-development.net/3NzcBsV each description must occur only once. How one could add in the first row of the output report the number of description elements that have occurred more than once in the xml file under question? Desired output: 3 (because "Light Belgian waffles covered with an assortment of fresh berries and whipped cream" was found 2 times, and "Two of our famous Belgian Waffles with plenty of real maple [syrup]" was found 3

JSON to XML with XSLT 3.0 using saxon

青春壹個敷衍的年華 提交于 2019-12-13 03:36:15
问题 I'm using XSLT 3.0 to transform this document JSON to this document XML with the function json-to-xml, <xsl:variable name="input-as-xml" select="json-to-xml(.)"/> From saxon I pass this json like document XML: String XML = "<root>" + JSON + "</root>"; I get an XML when call the function json-to-xml: <?xml version="1.0" encoding="utf-8"?> <map xmlns="http://www.w3.org/2005/xpath-functions"> <string key="_D">urn:oasis:names:specification:ubl:schema:xsd:Invoice-2</string> <string key="_S">urn