xslt-2.0

XSLT 2.0 or 3.0 for Node.js?

只谈情不闲聊 提交于 2019-12-12 04:14:51
问题 I've been looking for a node module that supports XML to HTML/XSL version 2.0 transformations via XSLT. I'm confined to developing in a windows environment, and have researched many alternatives including Saxon/C (saxon-node), node_xslt, gulp-xslt, and some others. I haven't found a solution that satisfies our needs. Most solutions seem to require a linux or mac osx environment for development. Any ideas? I greatly appreciate the help in advance! 回答1: Your best bet for XSLT in Node.js would

Split Table in XSLT

萝らか妹 提交于 2019-12-12 04:09:07
问题 I Have a XML that i need to split it by 50 or 100 rows the XML looks like this. <?xml version = "1.0" encoding = "utf-8" standalone = "yes"?> <DOCUMENT xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > <A> <B> <C> <D> <ROW> <SNo>1</SNo> <Date>06/JUN/2014</Date> <Time>12:31:49</Time> </ROW> <ROW> <SNo>2</SNo> <Date>07/JUN/2014</Date> <Time>11:50:42</Time> </ROW> </D> <D> <ROW> <SNo>3</SNo> <Date>08/JUN/2014</Date> <Time>19:43:09</Time> </ROW> <ROW> <SNo>4</SNo> <Date>10/JUN/2014</Date>

Creating alphabetical index with fixed number of columns in XSLT 2.0

本秂侑毒 提交于 2019-12-12 04:07:01
问题 I have an XML like this: <xml version="1.0" encoding="UTF-8"?> <countries> <country> <name>Latvia</name> </country> <country> <name>USA</name> </country> <country> <name>Australia</name> </country> <country> <name>Indonesia</name> </country> <country> <name>UK</name> </country> <country> <name>India</name> </country> <country> <name>Argentina</name> </country> <country> <name>Chile</name> </country> <country> <name>Singapore</name> </country> <country> <name>New Zeland</name> </country>

Sublist format text inside label as attributes

三世轮回 提交于 2019-12-12 04:06:47
问题 I want to add the label inside para as attribute value: My source xml: <body> <p>blahblah</p> <ul outputclass="l1"> <li outputclass="lt1">(a) blahblah</li> <li outputclass="lt1">(b) blahblah</li> <li outputclass="lt1">(c) blahblah <ul outputclass="l2"> <li outputclass="lt2"> (1) blahblah</li> <li outputclass="lt2"> (2) blahblah<fn><p>blah</p></fn></li> <li outputclass="lt2"> (3) blahblah <ul outputclass="l3"> <li outputclass="lt3"> (i) blahblah<fn><p>blah</p></fn></li> <li outputclass="lt3">

how to change the tag name in xslt?

孤人 提交于 2019-12-12 03:48:50
问题 could you please tell me how to change the tag name xslt ? ?I want to change img tag to imp-img tag . here is my code http://xsltransform.net/bwdwsT/1 Expected out <!DOCTYPE html PUBLIC "XSLT-compat"> <hmtl> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>New Version!</title> </head> <aa> <div class="section1"> <div class="Normal"> <p> <imp-img height="260" alt="" hspace="6" width="310" align="left" vspace="6" src="/photo/a.cms"> ffff<br> <br> hh<br> <br>

Correlating Children elements with their parents given the ID values

纵饮孤独 提交于 2019-12-12 03:46:45
问题 I have to transform the input xml, <?xml version="1.0" encoding="UTF-8" ?> <queryResponse xmlns="urn:partner.soap.sforce.com"> <result xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="QueryResult"> <records xmlns:sf="urn:sobject.partner.soap.sforce.com" xsi:type="sf:sObject"> <sf:type>Course__c</sf:type> <sf:Id>a0c20000002Yu</sf:Id> <sf:Id>a0c20000002Yu</sf:Id> <sf:CurrencyIsoCode>USD</sf:CurrencyIsoCode> <sf:Course_End_Time__c>5 pm</sf:Course_End_Time__c> <sf:Course_Start_Time

how to show only two items in xslt?

流过昼夜 提交于 2019-12-12 03:40:56
问题 could yu please tell me how to show first two element is xslt ? here is my code http://xsltransform.net/ehVYZMp/6 <?xml version="1.0" encoding="UTF-8" ?> <xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:exsl="http://exslt.org/common" extension-element-prefixes="exsl"> <xsl:output method="html" doctype-public="XSLT-compat" omit-xml-declaration="yes" encoding="UTF-8" indent="yes" /> <xsl:template match="a"> <hmtl> <head> <title>New Version!</title> </head>

How do i append input xml attribute into name of multiple output xml file using XSLT

风流意气都作罢 提交于 2019-12-12 03:34:54
问题 We have following input xml file in which we are trying XSLT processing instructions. ** Complete Input XML file :** It consist of Loop element as StockLineItem.for every single OrderHeader and OrderDetails we can have many StockineItems. Document tells single SalesforceOrderNumber element only. Hence We have to Output this element with xml Filename on each XML write. <?xml version="1.0" encoding="Windows-1252"?> <SalesOrders xmlns:xsd="http://www.w3.org/2001/XMLSchema-instance" xsd

Strip empty columns from calstable model

假如想象 提交于 2019-12-12 03:28:53
问题 I have a bunch of XML tables marked up using the CALS model and some of them have empty columns that I'd like to strip out. So here would be some example markup <table frame="none"> <tgroup cols="4" colsep="0" rowsep="0"> <colspec colname="1" colnum="1" colwidth="75pt"/> <colspec colname="2" colnum="2" colwidth="63pt" align="center"/> <colspec colname="3" colnum="3" colwidth="63pt" align="center"/> <colspec colname="4" colnum="4" colwidth="63pt"/> <thead> <row valign="bottom"> <entry> </entry

XSL list of words to replace, most easy defintion

穿精又带淫゛_ 提交于 2019-12-12 03:27:36
问题 I've got a XML document that I want to cop<, but I don't know how to translate one special attribute. Copying the XML and replacing the attribute in gernal works fine, but I don't know how I can define a list of phrases in XSL that are then translated into another phrase. The definition should be easyly readable. Does translate() swallow some kind of list representation? A small example using translate would be great (don't care about the XML copying stuff). 回答1: The translate function of