Questions tagged [XSL & XSLT] (76)

0
answer

How to remove html tag when outputting in the xslt?

There's a html: <p> lorem ..... <a href="#">link</a> ..... lorem <span>lorem</span> </p> Need to when the output of the xslt (xsl:value-of) It was so lorem ..... <a href="#">link</a> ..... lorem <span>lorem</span> That is without the tag "p" In the xsl do not ru...
Gladyce asked April 8th 20 at 18:14
0
answer

How to display news feed except for certain news in UMI?

Inside the news trying to get the list of news in the slider: <!-- News slider --> <xsl:apply-templates select="document('udata://news/lastlist/(novosti)')" mode="right-column-news" /> Here is the output: <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:umi="http://www.umi...
makenna_Raynor asked April 8th 20 at 09:17
1
answer

Xslt transformation the xsl:document and randomUUID?

Good day! Task with xslt to split an xml in n-th number of xml. - that's OK. But in the outbound xml is a tag = GUID, which must be generated in xslt . Use <xsl:value-of xmlns:uuid="java.util.UUID" select="uuid:randomUUID()"/>. A separate xslt everything works, but when you add in the main xslt (which to split xml ) g...
Brisa.Wa asked April 4th 20 at 01:56
1
answer

Reading multi-level xml file how to read correctly (XSLT)?

Have such xml file:<?xml version="1.0" encoding="utf-8" ?> <EmployeeData> <Department id = "1"> <Name>WEB</Name> <Employee id = "1"> <FirstName>Constantine</FirstName> <LastName>Vasiliev</LastName> <MiddleName>I.</MiddleName> <Gender>M</Gend...
amy_Effertz35 asked April 4th 20 at 00:07
0
answer

How to parse JSON to get XML to XSLT transformation is not above the 2.0?

To parse JSON to XML in XSLT 3.0 there is a built-in function json-to-xml. Is it possible to do the same with standard tools in XSLT 2.0 ? If not, what is the easiest way to do it manually ?
abdul_Effertz asked April 3rd 20 at 23:41
0
answer

Keep only the needed blocks?

Good day! As of XML document to save only the necessary blocks. If the unit has a certain tag or tag with a certain value, then save all that is included in its parent, if not then to remove from the selection. Example: this<document> <cart> ...... ...... <save>1</save> ...... ...... </cart> &l...
Margarete.Kautzer asked April 2nd 20 at 16:51
1
answer

How to get parent element using XSLT?

Hello! I need to perform an XSL transformation of the XML file to obtain the structure of the following form: We need to display the start time and the name of the program perform the grouping by date.m24_tv.xml<?xml version="1.0" encoding="utf-8"?> <?xml-stylesheet type="text/xsl" href="m24_tv_style.xsl"?> <...
veda.Lebsack asked March 29th 20 at 23:37
2
answers

How to parse a string in XSLT divider?

Good day! There is an XML document with the unloading of goods. In each card there is a tag that specifies the size in Width/Height/Length as using XSLT to split it on the delimiter /, and record the values in the tags. From:<cart> ... ... ... <dimensions>15.2/44/13.5</dimensions> ... </cart> To do ...
dina_Ullrich70 asked March 20th 20 at 11:29
1
answer

Why in Google Chrome and Opera doesn't open the xml file with an associated xsl styles?

In the xml file, plug in xsl in the following way:<?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet type="text/xsl" href="style.xsl"?> When you open the file in Chrome and in Opera I see the same error : For Chrome a offer to launch a browser with the flag --allow-file-access-from-files, but it didn't help...
Elmo.Grant asked March 19th 20 at 08:40
1
answer

How to do xslt transformation for xml processing-long xml files?

I recently met with xslt transformations. I have a task to do the conversion for the xml file that the data was displayed in tables. An example of a fragment: test.xml<?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet type="text/xsl" href="style.xsl"?> <root> <APPLICATION ID="88deeba4-69b1-454a-9...
Monica_Mohr asked March 19th 20 at 08:29