xslt

How to count the number of same immediate preceding siblings in xsl

♀尐吖头ヾ 提交于 2021-02-08 20:39:13
问题 I'm using xslt version 2, I'm trying to transform an xml to a fo output, and I'm stuck on a specific problematic. Here is what looks like my input: <a1/> <a1/> <b/> <c/> <d/> <a2/> <b/> <c/> <a1/> <a1/> <a1/> <a1/> <b/> <c/> <d/> This data, functionally speaking, contains a list of 'sets' defined by a1|a2,b?,c?,d?. My problem is that I don't see how I can count the number of a1 tags for a specific 'set'. Indeed, I have written my xsl and I get an output like that: <fo:table> <fo:row> <fo:cell

How to count the number of same immediate preceding siblings in xsl

眉间皱痕 提交于 2021-02-08 20:37:12
问题 I'm using xslt version 2, I'm trying to transform an xml to a fo output, and I'm stuck on a specific problematic. Here is what looks like my input: <a1/> <a1/> <b/> <c/> <d/> <a2/> <b/> <c/> <a1/> <a1/> <a1/> <a1/> <b/> <c/> <d/> This data, functionally speaking, contains a list of 'sets' defined by a1|a2,b?,c?,d?. My problem is that I don't see how I can count the number of a1 tags for a specific 'set'. Indeed, I have written my xsl and I get an output like that: <fo:table> <fo:row> <fo:cell

How to count the number of same immediate preceding siblings in xsl

荒凉一梦 提交于 2021-02-08 20:37:04
问题 I'm using xslt version 2, I'm trying to transform an xml to a fo output, and I'm stuck on a specific problematic. Here is what looks like my input: <a1/> <a1/> <b/> <c/> <d/> <a2/> <b/> <c/> <a1/> <a1/> <a1/> <a1/> <b/> <c/> <d/> This data, functionally speaking, contains a list of 'sets' defined by a1|a2,b?,c?,d?. My problem is that I don't see how I can count the number of a1 tags for a specific 'set'. Indeed, I have written my xsl and I get an output like that: <fo:table> <fo:row> <fo:cell

How to count the number of same immediate preceding siblings in xsl

拟墨画扇 提交于 2021-02-08 20:37:03
问题 I'm using xslt version 2, I'm trying to transform an xml to a fo output, and I'm stuck on a specific problematic. Here is what looks like my input: <a1/> <a1/> <b/> <c/> <d/> <a2/> <b/> <c/> <a1/> <a1/> <a1/> <a1/> <b/> <c/> <d/> This data, functionally speaking, contains a list of 'sets' defined by a1|a2,b?,c?,d?. My problem is that I don't see how I can count the number of a1 tags for a specific 'set'. Indeed, I have written my xsl and I get an output like that: <fo:table> <fo:row> <fo:cell

How to count the number of same immediate preceding siblings in xsl

霸气de小男生 提交于 2021-02-08 20:36:59
问题 I'm using xslt version 2, I'm trying to transform an xml to a fo output, and I'm stuck on a specific problematic. Here is what looks like my input: <a1/> <a1/> <b/> <c/> <d/> <a2/> <b/> <c/> <a1/> <a1/> <a1/> <a1/> <b/> <c/> <d/> This data, functionally speaking, contains a list of 'sets' defined by a1|a2,b?,c?,d?. My problem is that I don't see how I can count the number of a1 tags for a specific 'set'. Indeed, I have written my xsl and I get an output like that: <fo:table> <fo:row> <fo:cell

How to count the number of same immediate preceding siblings in xsl

血红的双手。 提交于 2021-02-08 20:36:49
问题 I'm using xslt version 2, I'm trying to transform an xml to a fo output, and I'm stuck on a specific problematic. Here is what looks like my input: <a1/> <a1/> <b/> <c/> <d/> <a2/> <b/> <c/> <a1/> <a1/> <a1/> <a1/> <b/> <c/> <d/> This data, functionally speaking, contains a list of 'sets' defined by a1|a2,b?,c?,d?. My problem is that I don't see how I can count the number of a1 tags for a specific 'set'. Indeed, I have written my xsl and I get an output like that: <fo:table> <fo:row> <fo:cell

XSL: Just the filename without the path

时光毁灭记忆、已成空白 提交于 2021-02-08 17:01:03
问题 I'm new in XSL programming and I guess it is a simple question: How can I get the filename without the path? At the moment my code looks like this and I get the whole path: Result.xml: <?xml version="1.0" encoding="UTF-8" ?> <All_Results> <Result> <id>1</id> <workid>144</workid> <rank>100000000</rank> <title>Test Dokument</title> <author_multival>Test</author_multival> <author>Test</author> <size>34185</size> <url>https://test.test.com/docs/globalit/Lists/Documents/Datumtest/Test.docx</url>

XSL: Just the filename without the path

对着背影说爱祢 提交于 2021-02-08 16:59:36
问题 I'm new in XSL programming and I guess it is a simple question: How can I get the filename without the path? At the moment my code looks like this and I get the whole path: Result.xml: <?xml version="1.0" encoding="UTF-8" ?> <All_Results> <Result> <id>1</id> <workid>144</workid> <rank>100000000</rank> <title>Test Dokument</title> <author_multival>Test</author_multival> <author>Test</author> <size>34185</size> <url>https://test.test.com/docs/globalit/Lists/Documents/Datumtest/Test.docx</url>

XSLT loop over a set of files in the directory?

给你一囗甜甜゛ 提交于 2021-02-08 10:38:44
问题 I have a situation where I have a directory full of xsd files that need conversion done to them generate a output file for each of them. I have my stylesheet operating on a single document fine, but I'd like to extend that. Well, for now I haven't using a xslt editor, saxon has installed. here is xslt file: <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xsd="http://www.w3.org/2001/XMLSchema" > <xsl:output method="text"/> <!--* Ignore anything that looks

Trim white-spaces at the end of lines only before a specific tag

試著忘記壹切 提交于 2021-02-08 09:29:44
问题 could you please help me?! I'm dealing with the following problem: the lines in my xml begin with the <lb> element. Some of these elements have an attribute <lb break="no"> . I need to transform the line-by-line text into a floating text and also trim whitespaces before <lb break="no"> , so that the word is written without spaces. At the same time it is necessary to leave all the whitespaces that are presented in the text, as there are many different tags that go one after another. If I'm