Questions tagged as 'xslt'

0
answers

How to apply an XSL transformation to XML?

I'm developing XSLT for XML in my hands, which makes encoding costly. Is there any tool that is ide / site / plugin to apply an xslt transformation to an xml? XML <?xml version="1.0" encoding="utf-8" ?> <Produtos> <produ...
asked by 07.03.2018 / 14:22
1
answer

Check if a string is null or empty in XSLT

I have this XML code snippet and I need to check if it is empty: <CNPJ> <xsl:if "cnpjContratado"!=NULL> <xsl:value-of select="cnpjContratado"/> </xsl:if> </CNPJ> <CPF> <xsl:if "cpfCont...
asked by 14.02.2018 / 22:37
1
answer

How do I get XSLT to get the attributes within the name of my tag item, only if it is true?

<bloco> <item nome="imagem">true</item> <item nome="imagem">false</item> </bloco>     
asked by 02.10.2017 / 15:00
1
answer

How to use Foreach with xslt in an xml file

I can not use a .xml " file and a " .slt " Below is the code: ListAlumni.xml <?xml version="1.0" encoding="UTF-8"?> <listaAlunos> <aluno> <nome>Bill</nome> <sobrenome>Gates</sobrenome>...
asked by 10.04.2017 / 15:54
1
answer

Change 2 attributes of an XML with XSLT

I have the following XML: <?xml version="1.0" encoding="WINDOWS-1252"?> -<NewDataSet> -<xs:schema xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="" id="NewDataSet"> -&l...
asked by 11.04.2017 / 18:06
1
answer

Change an attribute of an XML element

I have the following XML: <?xml version="1.0" encoding="WINDOWS-1252"?> -<NewDataSet> -<xs:schema xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="" id="NewDataSe...
asked by 09.03.2017 / 16:26
1
answer

Ruby on Rails, how to improve the performance of the Hash transformation for ActiveRecord?

Personally I have a performance problem when transforming a hash to the activerecord model objects, the hash is returned by the gem savon after consuming a web service. The benckmark has a relatively high time for the hash size that is 0.25sec f...
asked by 23.12.2016 / 23:18