xsl

XSL fo :ValidationException: “fo:table-body” is missing child elements

匿名 (未验证) 提交于 2019-12-03 01:06:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I tried to get the solution frthis error and none of the other topics really came close to addressing the same problem. As I am new to XSL. I am getting the below errors. fo:table-cell" is missing child elements. Required content model: marker* (%block;)+ (See position 1:36249) in PER-FPL-FLP-ICR-40 (CLIMB CORRECTION), DU solution 00012999.0019001 (CLIMB CORRECTION), near lid N.00012999.0019001.141 [Tue May 10 15:47:14 IST 2016] com.airbus.ops.publisher.composer.render.RenderEngineWrapperException: Cannot transform document [Tue May 10 15:47

XSL media:content - Trimming strings in XSLT

匿名 (未验证) 提交于 2019-12-03 01:05:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: Can anyone tell me how to select the URL from this: <media:content url = "http://feedproxy.google.com/~r/TEDTalks_video/~5/aZWq6PY05YE/TimBrown_2009G.mp4" fileSize = "57985745" type = "video/mp4" /> I want to: Create a link to this file: Trim the URL from: http://feedproxy.google.com/~r/TEDTalks_video/~5/aZWq6PY05YE/TimBrown_2009G.mp4 to: TimBrown_2009G and then take: TimBrown_2009G and use it as part of a URL 回答1: Selecting the URL. You just need to make sure that you have the correct namespace URI. <xsl:value-of xmlns:media =

xQuery update question

匿名 (未验证) 提交于 2019-12-03 01:03:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Here is my xml <book asin="0201100886" created="128135928" lastLookupTime="128135928"> <price>102.00</price> <purchaseDate>2005-01-22</purchaseDate> </book> <book asin="0122513363" created="128135600" lastLookupTime="128136224"> <price>50.95</price> <purchaseDate>2005-01-22</purchaseDate> </book> <book asin="0201441241" created="128136896" lastLookupTime="128136896"> <price>108.20</price> <purchaseDate>2005-01-22</purchaseDate> </book> <book asin="0471250600" created="128136896" lastLookupTime="128136896"> <price>107.95</price> <purchaseDate

Can&#039;t generate PDF with Apache FOP

匿名 (未验证) 提交于 2019-12-03 01:03:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to use Apache FOP to create a PDF using XML data and a XSL stylesheet but I keep getting the following error org.apache.fop.apps.FOPException: org.apache.fop.fo.ValidationException: "{ http://www.w3.org/1999/XSL/Format }block" is not a valid child of "fo:root"! (No context info available) javax.xml.transform.TransformerException: org.apache.fop.fo.ValidationException: "{ http://www.w3.org/1999/XSL/Format }block" is not a valid child of "fo:root"! (No context info available) The strange thing is that it works fine when I was

Grouping and counting in XSLT 1.0

匿名 (未验证) 提交于 2019-12-03 01:01:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have input XML: <?xml version="1.0" encoding="UTF-8"?> <root> <FT>Paket</FT> <FT>Parti</FT> <FT>Paket</FT> <FT>Styche</FT> <FT>Styche</FT> </root> And I want my output to display such as - Paket 2 Parti 1 Styche 2 Its is grouping the value of elements and the no. is showing the total count of the value being repeated. Like Paket is indicating the value and it is being repeated 2 times in the XML. How the logic will work? 回答1: In XSLT 1.0, using Muenchian grouping: <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL

XSLT : Parse with multiple same name

匿名 (未验证) 提交于 2019-12-03 01:00:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: As the below source XML Value/string element value has to be replace with target element value, Could some please help me out how to create the XSL to transform from source xml into target xml .Please. Source XML: <PricingResultsV6> <subItems> <SubItem> <profiles> <ProfileValues> <values> <strings>800210</strings> <strings>THC</strings> <strings>10.0</strings> <strings>20.0</strings> <strings>30.0</strings> <strings>40.0</strings> <strings>550.0</strings> <strings>640.0</strings> </values> </ProfileValues> </rofiles> </SubItem> </subItems> <

Saxon9HE error XLM0001: Too many nested apply-templates calls. The stylesheet may be looping

匿名 (未验证) 提交于 2019-12-03 01:00:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm using Saxon9HE to transform some XML 2.0. from a Java class; the solution is from this earlier question I'm transforming double pipe delimited text into XML. However, some of the fields contain people's resumes and the transform throws the looping error mentioned in the title. Is there a way fix this? I read about increasing the maximum depth in templates stack but that only applies to Oxygen; is there a similar setting in the Saxon9HE.jar? Here's the code, you can also click on the link above to get the code <xsl:stylesheet version="2.0

XSL Transformation of XML - Simple .NET example?

匿名 (未验证) 提交于 2019-12-03 00:57:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have a.NET based application that receives an incoming XML file. I would like to transform the XML file into HTML using an XSL stylesheet I have. This is my process ... Read the submitted XML file from filesystem Apply XSL to XML for transformation Print resultant HTML to screen as HTML Does anyone have any example code that demonstrates how to to this? Thank you. 回答1: Here is a very short example from the MSDN .NET documentation on using the Transform() method of the XslCompiledTransform class that is a standard part of .NET (implemented

Jaxb marshaller setproperty XSLT throws PropertyException

匿名 (未验证) 提交于 2019-12-03 00:56:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I try to set XSL property for my marshaller like this ( which I copied from here ) : marshaller.setProperty("com.sun.xml.bind.xmlHeaders", "<?xml-stylesheet type='text/xsl' href=\"" + xslFileName + "\" ?>"); But it causes javax.xml.bind.PropertyException with this message : name: com.sun.xml.bind.xmlHeaders value: <?xml-stylesheet type='text/xsl' href="decathlon.xsl" ?> "very informative" Sorry, but I cannot elaborate more, frankly I have no idea what causes this. 回答1: I managed to find this answer , which solved my problem. All i had to do

xsl:for-each-group help needed

匿名 (未验证) 提交于 2019-12-03 00:52:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I went through XSLT Grouping Examples and Using for-each-group for high performance XSLT . I have a problem with for-each-group. My XML Introduction XSLT and XQuery XSLT XSLT is used to write stylesheets. XQuery XQuery is used to query XML databases. XQuery and stylesheets XQuery is used to query XML databases. XSLT and XQuery XSLT My Wanted Output Introduction XSLT and XQuery XSLT XSLT is used to write stylesheets. XQuery is used to query XML databases XQuery is used to query XML databases. XQuery and stylesheets XQuery is used to query XML