xslt Questions
5
Solved
I am working to create an XSLT which is generic enough to create a table of name-value of any input XML data.
Eg.
<root>
<Field1>value1</Field1>
<Field2>value2</Fiel...
5
Solved
I want to trim whitespace left and right
in :
<xsl:value-of select="Datas/Data[@key='Name']/string"/>
How can I do that?
4
Solved
I have the following XML document:
<projects>
<project>
<name>Shockwave</name>
<language>Ruby</language>
<owner>Brian May</owner>
<state&...
3
Solved
I can search for a String contained in an specific attribute if I use the following XPath
/xs:schema/node()/descendant::node()[starts-with(@my-specific-attribute-name-here, 'my-search-string')]
Ho...
2
Solved
I put my code in the XML validation website and it gives me this error:
Line 8: 4 The markup in the document following the root element must be well-formed.
The line that is having an issue i...
Mosul asked 22/9, 2017 at 1:20
1
Solved
My release pipeline deploys the application to multiple environments.
Based on the environment, I am trying to set up File Transformations to be executed, though I'm not sure how to set it up, if...
Omnidirectional asked 6/4, 2020 at 16:27
5
Solved
I'm using xalan with the following xsl header:
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0"
xmlns:redirect="http://xml.apache.org/xalan/redirect"
extension-...
Epilogue asked 8/3, 2010 at 15:5
2
Solved
I am new to xml and I am having difficulties in understanding what is happening in the below statement. The Schematron file is from https://schemas.wmo.int/iwxxm/3.0.0/rule/iwxxm.sch
<sch:rule ...
Peachey asked 19/2, 2020 at 8:1
12
Solved
I am using xslt to transform an xml file to html.
The .net xslt engine keeps serving me self-closing tags for empty tags.
Example:
<div class="test"></div>
becomes
<div class=...
Rosenarosenbaum asked 20/5, 2009 at 12:55
5
Solved
I am trying to implement an if -else statement in XSLT but my code just doesn't parse. Does anyone have any ideas?
<xsl:variable name="CreatedDate" select="@createDate"/>
<xsl:variable ...
Alderson asked 29/11, 2012 at 9:14
10
Solved
I've found a lot of examples that reference Java and C for this, but how do I, or can I, check for the existence of an external file with XSL.
First, I realize that this is only a snippet, but it'...
3
Solved
By editing the XML filter query manually in Windows event viewer, I can find events where the data matches a string exactly:
<QueryList>
<Query Id="0" Path="Application">
<Select ...
Asternal asked 29/12, 2011 at 17:36
9
Solved
I often see people asking XML/XSLT related questions here that root in the inability to grasp how CDATA works (like this one).
I wonder - why does it exist in the first place? It's not that XML co...
4
Essentially I want do this in XSL:
<xsl:include href="_domains/{$domain}/templates/header.xsl" />
But I can't seem to use a variable ($domain) in the include. Any suggestions on a work aro...
Metalworking asked 14/4, 2011 at 20:47
2
Solved
Input XML
<Root>
<Result>
<System>
<Name>ABC</Name>
<ID pname="PAD">
<value>4567</value>
</ID>
<lastTime>2013-11-06T17:36:46.000-...
8
How would you convert JSON to XML?
Consider:
<sampleTag>
{
"Order": {
"InvestmentAccount": { "AccountNumber": "10" },
"Parcel": {
"Limit": "0",
"ExpiryDate": "1900-01-01T00:00:00",
"...
6
Solved
6
Solved
I've seen plenty of posts all around about this... but I can not, for the life of me, figure out what my problem is! Google Chrome just displays a blank page when I try to transform XML with XSL. W...
Pasteurize asked 29/12, 2010 at 21:48
1
Currently, pandas I/O tools does not maintain a read_xml() method and the counterpart to_xml(). However, read_json proves tree-like structures can be implemented for dataframe import and read_html ...
4
Solved
I'm trying to render XML+XSL 2.0 in browser, returning .xml pages with application/xml content type and .xsl pages with text/xml. Safari is complaining for the main document: "Resource interpreted ...
2
Initially I had various XSD definition for each XSD I had set of XML files stored.
After some time duration there are some changes in XSD definition so my stored XML is no more validation again ne...
2
I understand this question might be beyond Saxon and more related to the architecture of the application using it for transformations, but just wanted to give a try. Consider the following files-
...
1
I noticed when trying to use disable-output escaping in XSLT3 in Saxon that it would not work if expand-text was set to yes on the stylesheet or even on the given match template
The following code...
5
Solved
I have an xslt sheet with some text similar to below:
<xsl:text>I am some text, and I want to be bold</xsl:text>
I would like some text to be bold, but this doesn't work.
<xsl:te...
Mendelson asked 17/9, 2008 at 1:18
2
Solved
I need to add the following code to the beginning of an XML file, while creating it:
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" href="colors.xslt"?>
...
© 2022 - 2024 — McMap. All rights reserved.