xslt

Why does processing a parent element's template prevent the processing of child element templates?

左心房为你撑大大i 提交于 2020-01-15 11:30:07
问题 Consider this XML: <person> <name> <firstName>James</firstName> <lastName>Bond</lastName> </name> </person> Then consider this XSL: <xsl:template match="//name"> [do stuff] </xsl:template> <xsl:template match="//firstName"> [do stuff] </xsl:template> Am I correct in saying that existence of the first template ("//name") "hides" the second template ("//firstName"). I know this is true (I tested this before posting), but I'm trying to derive and understand the general rule. Since... It ("//name

XML containing link throws error in Visual Studio when running XSLT Debugger

有些话、适合烂在心里 提交于 2020-01-15 11:26:08
问题 I'm an XSLT noob, so my apologies if there is an obvious answer to the following question. I'm working on a stylesheet. The xml to which I'd like to apply it contains links. These throw errors in the VS XML debugger and seem to keep the XML transform from happening correctly in browsers. Can someone please tell me what I'm doing wrong? Here is the XML: <?xml version="1.0" encoding="UTF-8"?> <rss version="2.0"> <channel> <title>Some title</title> <description>a link should be here</description

How to get any type of content of specific .ODS cells in XSLT

房东的猫 提交于 2020-01-15 11:11:46
问题 I am trying to transform an .ods file ( content.xml file from the zip) with XSLT in order to produce a desired .xml file. XSLT uses "fixed" positions of the elements to get the content, but in my .ods file I have many blank fields and I don't know how to make them count in XSLT. Furthermore, I did some experiments with content.xml to find out if these blank(empty) cells are saved or not. In content.xml I found something like: <table:table-column table:style-name="co1" table:number-columns

How to get any type of content of specific .ODS cells in XSLT

我们两清 提交于 2020-01-15 11:11:30
问题 I am trying to transform an .ods file ( content.xml file from the zip) with XSLT in order to produce a desired .xml file. XSLT uses "fixed" positions of the elements to get the content, but in my .ods file I have many blank fields and I don't know how to make them count in XSLT. Furthermore, I did some experiments with content.xml to find out if these blank(empty) cells are saved or not. In content.xml I found something like: <table:table-column table:style-name="co1" table:number-columns

Delete node from xml using xslt based on node value

☆樱花仙子☆ 提交于 2020-01-15 10:53:48
问题 I am trying to work on this XML file where i would like to delete all the matching nodes based on the latest node value. In the following example the latest node value is "${DELETE}" Latest node value will be always "${DELETE}" and the node will be always at the bottom of an XML file. Example: <?xml version="1.0" encoding="utf-8" standalone="no"?> <projects> <project id="properties1"> <property name="prop1">some-value</property> <property name="prop2">abc</property> <property name="prop3">def

XSLT finding distinct combinations

本小妞迷上赌 提交于 2020-01-15 10:53:24
问题 I am beginner to xslt. I want to find all unique combinations for Year, Month, Day, and Hour. I have following xml file to transform: <Plans> <Plan Name="Plan_1"> <Book Name="Book_1"> <Time Name="AAA"> <Property Name="Year" Value="2001"/> <Property Name="Month" Value="01"/> <Property Name="Day" Value="10"/> <Property Name="Hour" Value="12"/> </Time> <Time Name="BBB"> <Property Name="Year" Value="2001"/> <Property Name="Month" Value="01"/> <Property Name="Day" Value="10"/> <Property Name="Hour

XSLT finding distinct combinations

十年热恋 提交于 2020-01-15 10:52:35
问题 I am beginner to xslt. I want to find all unique combinations for Year, Month, Day, and Hour. I have following xml file to transform: <Plans> <Plan Name="Plan_1"> <Book Name="Book_1"> <Time Name="AAA"> <Property Name="Year" Value="2001"/> <Property Name="Month" Value="01"/> <Property Name="Day" Value="10"/> <Property Name="Hour" Value="12"/> </Time> <Time Name="BBB"> <Property Name="Year" Value="2001"/> <Property Name="Month" Value="01"/> <Property Name="Day" Value="10"/> <Property Name="Hour

XSLT finding distinct combinations

丶灬走出姿态 提交于 2020-01-15 10:52:22
问题 I am beginner to xslt. I want to find all unique combinations for Year, Month, Day, and Hour. I have following xml file to transform: <Plans> <Plan Name="Plan_1"> <Book Name="Book_1"> <Time Name="AAA"> <Property Name="Year" Value="2001"/> <Property Name="Month" Value="01"/> <Property Name="Day" Value="10"/> <Property Name="Hour" Value="12"/> </Time> <Time Name="BBB"> <Property Name="Year" Value="2001"/> <Property Name="Month" Value="01"/> <Property Name="Day" Value="10"/> <Property Name="Hour

How to resolve “DisplayDocTitle key is not set to true” error generated by PAC tool in a pdf generated using apache FOP

懵懂的女人 提交于 2020-01-15 09:56:10
问题 I am trying to generate pdf using ApacheFOP and making it accessible. When I am running PAC tool to find out the accessibility errors we are getting the error “DisplayDocTitle key is not set to true”.Below is the xsl: <pdf:dictionary type="Catalog" xmlns:pdf="http://xmlgraphics.apache/org/fop/extensions/pdf"> <pdf:entry key="PageMode" type="name">FullScreen</pdf:entry> <pdf:entry key="PageLayout" type="name">SinglePage</pdf:entry> <pdf:dictionary type="normal" key="ViewerPreferences"> <pdf

Importing xml with nested nodes into Access (and needing to transform the xml into a 'flat' structure with xsl)

梦想与她 提交于 2020-01-15 09:52:56
问题 Desperately trying and failing to import some data into Access that comprises of various nested nodes that on import are being put into separate tables when I only desire to have one. I just would like to have the Activity table with all the data in the nested nodes to be in this parent table. I've tried adjusting some code from a previous similar question but my attempt appears hopeless as it is not even pulling any information from the 'Activity' table, however it has created the 'AttID'