I'm trying to do a simple transform om a docbook xml file.
however we he entities defined in a DTD which are referenced in this xml file.
because the transform is separate from the rest of our docbook chain we need to keep the entity references as references in the result.
i have tried with --novalid an --nodtdattr but it still resolve...
We have XML file like below...
<?xml version='1.0'?>
<T0020 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.safersys.org/namespaces/T0020V1 T0020V1.xsd"
xmlns="http://www.safersys.org/namespaces/T0020V1">
<IRP_ACCOUNT>
<IRP_CARRIER_ID_NUMBER>1213561</IRP_CARRIER_ID_NUMBER>
...
I want to tightly grasp the hair on the back of a Microsoft employee's head, using it as leverage to pound his head forcefully and repeatedly against a hard surface! That would make me feel nearly as good as solving this problem right now.
I've got a simple XML message that looks like this:
<?xml version="1.0" encoding="utf-8"?>
<mess...
Hi,
I am querying a sharepoint list like
<where><Field Ref Name='Title'/><Value type='Text'>A</value></where>
now I am creating a webpart where I want to create xml based on this query.I don't know how to achieve this mainly I want sth like content query webpart like getting xml from querying a list and then apply xsl on it. Can anyo...
I am performing an xsl transform and in it I call a template with a param using the following code
<xsl:call-template name="GenerateColumns">
<xsl:with-param name="curRow" select="$curRow"/>
<xsl:with-param name="curCol" select="$curCol + 1"/>
</xsl:call-template>
This calls a template function which outputs part of a table ...
Given an XSLT 1.x style sheet that requires parameters, is there any way to associate it with an XML document that specifies values for the parameters? I read the W3C spec document for the stylesheet PI and got left with the impression that the answer is 'no,' but I had a case of acute BNF poisoning by the time I was done, and thus might...
hi all,
I have a XSLT which will split large xml file into multiple xml file with the use of following xslt code.
<xsl:variable name="filename" select="resolve-uri(concat('splitfilesfolder/',position(),'.xml'))" />
<xsl:result-document href="{$filename}" format="xml">
<--XML file content --->
</xsl:result-document>
then i have...
Hello
I have a XML doc that is transformed to HTML but I want the result HTML to be as small as possible. So I must remove all white spaces and line endings. How can I do that?
10x
...
I'm trying to calculate a year based on a year starting 6th April.
Using EXSLT I can get the year based on a normal January start:
date:formatDate(date:add(date:date(), '-P6Y'), 'yyyy')
How can I do the same but for a year starting 6th April.
Thanks.
...
Hi
XSL noobie but uttery stuck!
I have a transform that formats a date using c# scripting function , this works fine when I am in VS 2008 and run "show xml output", the output is exactly what I want.
However , when i try to run this using code I get the error
Predefined type 'System.Object' is not
defined or imported
To funct...
I'm a beginner with XSL. I would like to take the StyleCop report and display the file names and their violation count in a descendant order (in XSL 1).
The StyleCop report looks like:
<StyleCopViolations>
<Violation Section="A" LineNumber="5" Source="A1 RuleNamespace="Microsoft.StyleCop.CSharp.DocumentationRules" Rule="ElementsMus...
Hello All, I am using xslt first time. I have to create an element based on some criteria.
here is i/p xml:
<FirstUser>
<User id="2" description="ABC" Type="HR"/>
</FirstUser>
<SecondUser>
<User id="3" description="ABC" Type="HR"/>
<User id="4" description="xyz" Type="Admin"/>
<User id="5" description="LMN" Type="Payroll"/>
</...
In XSLT 1.0, you can get the local name or the namespaceUri of an XML element using the functions:
string local-name (node)
and
string namespace-uri(node)
but is there a standard function to get the prefix of an element having a qualified name ?
...
HI,
I want to select all nodes other than first node.My xsl and xml are like this but I am not getting the output for it.
<Categories>
<Category>
<Title>Business</Title>
</Category>
<Category>
<Title>Politics</Title>
</Category>
</Categories>
my xsl
<xsl:template match="Categories">
<xsl:variable name="restallTit...
I have the following code that applies a XSLT style
Test.Xml.xslTransform = function(xml, xsl) {
try {
// code for IE
if (window.ActiveXObject) {
ex = xml.transformNode(xsl);
return ex;
}
// code for Mozilla, Firefox, Opera, etc.
else if (document.implementation && doc...
Hi,
can anyone start me off with regard to converting some XML to HTML. I've worked on XSLT conversions before, but never from scratch, and I seem to be missing something.
Starting with XML that's something like this:
<order name="fred" value="123.45">
<lines>
<line description="foo" value="123"/>
<line description="bar" val...
I have a Sitecore 6.2.0 (rev. 091012) installed and working perfectly, except one thing - every xsl rendering i have is failing to run, and the xsl error i get is "System.Exception: Could not resolve type name: Demo.Samples.XslHelper, MyDemo.....". I have no idead what this is and how to fix this - any suggestions?
My user controls are w...
While browsing the site I saw the following question. Reading more on the
sarissa site I read about Javeline. Would any one have an example of how to perform a transform using Javeline? Also I can not seem to find the following two files:
javeline_xpath.js
javeline_xslt.js
...
Back in about 2006, I wrote a nice XSLT that transformed my RSS feeds into custom HTML. That way if a user clicked from a browser it would display as a simple page rather than a bunch of junk XML. If that same URL was used in a feed reader it was handled properly and everything was slick.
Now days, most browsers (IE, Firefox, Safari, Op...
I've got a file with an extension of .abc which is an XML file and I am processing the XML using XSL.
I open an HTML page which loads the XML using loadXMLDoc like this:
xml=loadXMLDoc("Example.xml");
xsl=loadXMLDoc("Example.xsl");
The problem is I need to open "Example.abc" not "Example.xml". If I try:
xml=loadXMLDoc("Example.ab...