xslt

XSLT lookup from external xml file

浪尽此生 提交于 2020-07-08 02:47:13
问题 I am aware that there are plenty of questions (and answers) here on the lookup from external xml files via xslt. However, I still haven't got my head around the logic of the key function so I'm having a hard time applying other solutions to my use case. I have two xml files: versA.xml <TEI> <div> <l id="A001" corresp="B001">First line of VersA</l> <l id="A002" corresp="B002">Second line of VersA</l> <l id="A003" corresp="B003">Third line of VersA</l> </div> </TEI> and versB.xml <TEI> <div> <l

Directly convert a single XML file to DOCX

余生颓废 提交于 2020-07-07 06:38:23
问题 I tried to convert a single XML file into a DOCX file, and I did it by transforming my XML into an XHTML by using XSLT, then open the XHTML on MS Word and save it as DOCX. But my task is to convert any XML Structure (DITA, TEI, DocBook, etc.) to DOCX directly ... are there any other way to do it? I just can't find any sources for this. It's always DOCX to XML and not the other way around. 回答1: Yes, you can use XSLT to transform from any of those XML formats to OOXML. XSLT is ideal for XML to

Directly convert a single XML file to DOCX

99封情书 提交于 2020-07-07 06:34:10
问题 I tried to convert a single XML file into a DOCX file, and I did it by transforming my XML into an XHTML by using XSLT, then open the XHTML on MS Word and save it as DOCX. But my task is to convert any XML Structure (DITA, TEI, DocBook, etc.) to DOCX directly ... are there any other way to do it? I just can't find any sources for this. It's always DOCX to XML and not the other way around. 回答1: Yes, you can use XSLT to transform from any of those XML formats to OOXML. XSLT is ideal for XML to

importing complex XML data into multiple FileMaker tables

六眼飞鱼酱① 提交于 2020-07-04 03:29:05
问题 I understand the basics of import to FileMaker (csv, xml) and I know a little about XSLT. I have a data set containing lists that I need to import into FileMaker. There are 3 tables for this - the main table, the datapoints table and the positions table. My data looks like this: <?xml version="1.0" encoding="ISO-8859-1"?> <result> <data mode="test" ram="on"> 33,869 34,115 46,074 225,233, E 226,122, E 235,763, E 237,408, E 237,722, E 242,503 256,271 273,741 </data> <statistics> <positions>

How to apply XML File Transformations on a ClickOnce application through Azure DevOps release pipeline?

只谈情不闲聊 提交于 2020-06-29 04:20:49
问题 My release pipeline deploys the application to multiple environments. Based on the environment, I am trying to set up File Transformations to be executed, though I'm not sure how to set it up, if at all possible. I already have the app.Release.config file set up in the repository, but I'm not sure where to go from here. In my release pipelines, I've enabled the native XML Transformation option, but it doesn't actually do anything. I've also tried adding the File Transform task and explicitly

Incomplete XSL transformation if using ErrorListener, ONLY on Jenkins

一个人想着一个人 提交于 2020-06-29 03:58:26
问题 I am trying to have an XSL transformation to run on a Jenkins pipeline. I need to catch XSL transformation's xsl:message . In order to achieve so, I added an ErrorListener : final ErrorListener errorListener = new ErrorListener() { final public List<TransformerException> errorList = new LinkedList<>() @Override void warning(final TransformerException e) throws TransformerException { errorList.add(e) } @Override void error(final TransformerException e) throws TransformerException { errorList

Incomplete XSL transformation if using ErrorListener, ONLY on Jenkins

故事扮演 提交于 2020-06-29 03:58:10
问题 I am trying to have an XSL transformation to run on a Jenkins pipeline. I need to catch XSL transformation's xsl:message . In order to achieve so, I added an ErrorListener : final ErrorListener errorListener = new ErrorListener() { final public List<TransformerException> errorList = new LinkedList<>() @Override void warning(final TransformerException e) throws TransformerException { errorList.add(e) } @Override void error(final TransformerException e) throws TransformerException { errorList

Using keys in xslt for converting trx file of mstest

家住魔仙堡 提交于 2020-06-29 02:45:28
问题 I have written an xsl for converting the trx file of mstest into html. Following from this link, I'm unable to get the class names and number of passes and failures for each class to be printed in the output. I'm not sure where I'm goin wrong. the style sheet is applied on the same input file in the link. Thanks. <?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:t="http://microsoft.com/schemas/VisualStudio/TeamTest/2006

xslt 1.0 to convert xs:date to a specific dateFormat DD-MON-YYYY

二次信任 提交于 2020-06-23 18:34:32
问题 I am new to xslt. so this might be a basic question. I am trying to convert a date received in xs:date format to DD-MON-YYYY input received is : <tns:receivedDate>2017-06-27</tns:receivedDate> Output expected <tns:receivedDate>27-JUN-2017</tns:receivedDate> Thanks in advance 回答1: If you mean convert YYYY-MM-DD to DD-MMM-YYYY , try: <xsl:template name="format-date"> <xsl:param name="date"/> <!-- day --> <xsl:value-of select="substring($date, 9, 2)"/> <xsl:text>-</xsl:text> <!-- month --> <xsl

Extract value from one XML while matching template in other XML using XSLT

Deadly 提交于 2020-06-17 13:22:08
问题 I have 2 XMLs. I am trying to run XSLT on 1st XML and matching data in 2nd XML using keys. While doing template-match on 2nd XML,I am unable to pull data from 1st XML's matching node(dont know how to pull any data from there per say) and populate it in there. Below are samples and expected output. 1st XML- <parent> <child> <name>John</name> <city>Boston</city> <shortCityCode>B</shortCityCode> </child> <child> <name>John</name> <city>Seattle</city> <shortCityCode>S</shortCityCode> </child>