I'm working on a system that stores data in XML files. The data in the files can be converted into a generic DOM but not without some processing. I have been tasking with looking into how to do the web access story for this system. (FWIW, the existing code base is in .NET)
The system can be thought of as an XML in XML database for hand...
I'm looking for something to turn my C# xml comments into documentation. I don't like chm's, nor msdn's look and feel. I love using the javadocs. They're easy to navigate, and everything is accessible. Is there a tool I can use to convert the comments in my code to a javadoc like look and feel.
Is there something that does this? I've tr...
I am trying to perform an XSL Transformation. But an attribute replacement doesn't work. I have this XSL:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output encoding="UTF-8"
doctype-public="-//WAPFORUM//DTD WML 1.1//EN"
doctype-system="http://www.wapforu...
Hey all, I have highly repetitive data with a depth of 5 nodes deep (including the root) that needs to be broken apart. (I'll include a fast sample in a minute.) What I'm looking to do is parse a ~5mb XML file into smaller sub-files based on the 3rd-depth nodes. But after that, it gets more complicated.
The task's requirements are these...
Hello guys,
Lets say I have the following code snippet below, how do I also apply the disable-output-escaping to the {name} in the title attribute?
<a title="{name}"><xsl:value-of select="name" disable-output-escaping="yes" /></a>
This has really got me stumped.
Thanks guys.
...
I have an XML file that encodes a
directed acyclic graph
(DAG) that represents a partial order. Such graphs are useful for things like specifying dependencies and finding critical paths. For the curious, my current application is to specify component dependencies for a build system, so vertices are components and edges specify compile-t...
Hi,
I have a item list and for each item I want to make it an url.
List:
<root>
<tags>
<tag>open source</tag>
<tag>open</tag>
<tag>advertisement</tag>
<tag>ad</tag>
</tags>
</root>
XSLT:
<xsl:template match="*">
<div class="tags">
<xsl:for-each select="/post/tags/tag">
<a href="#">
...
Hi I have following XAML code which is the output from XamlWriter.Save():
<StackPanel Name="itemStack" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:mm="clr-namespace:MindManager;assembly=MindManager">
<mm:Item Width="Auto" Height="Auto">
<Border BorderThickness="10,10,10,10" Name="border1" Height="Auto">...
I have an XSLT transform issue:
style="width:{Data/PercentSpaceUsed}%;"
And the value of Data/PercentSpaceUsed is integer 3.
And it outputs:
style="width:
 3
 %;"
instead of what I expected:
style="width:3%;"
Here's the code that does the transform: xslt_xslt is the transform xml, sw.ToString() contains the ...
Hi guys,
I am looking for a way to sort my xml data with javascript, and want to eventually filter out the data as well. I know all this is possible in the xsl file but i would like to do it client side.
I have searched multiple places for sorting with javascript but most of it was either too xml file specific or I couldn't figure out...
Currently I have a String object that contains XML elements:
String carsInGarage = garage.getCars();
I now want to pass this String as an input/stream source (or some kind of source), but am unsure which one to choose and how to implement it.
Most of the solutions I have looked at import the package: javax.xml.transform and accept a ...
Hello,
I have searched around and found some tutorials for xsl:key and key() function, but somehow I still am missing some understanding apparently.
There is a XML-XML transformation I need to do, which includes some 10 fields where you I have to take string values from source XML, find appropriate numeric codes from appropriate lookup...
I'm wondering whether it brings advantages or disadvantages when using a XML document for the content of a web page and XSLT to manage the display part and not using plain HTML.
The first condition in my eyes is browser support for XML and XSLT. But as far as I know no modern browser has a problem with it. (Correct me if I'm wrong.)
Bu...
I'd like to take data from some XML files and transform them into a new XML document. However, I do not want the definition of a namespace in the XSLT to occur in the result document.
In other words:
source:
<Namespace:Root xmlns:Namespace="http://www.something.com">
stylesheet:
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:...
I have this simplified xml:
<?xml version="1.0" encoding="UTF-8"?>
<a>
<b>
<c>
<d>1</d>
<e>2</e>
</c>
</b>
<f>
<g>3</g>
</f>
</a>
This is the xslt i try to apply:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLS...
I am writing a transform for a set of nodes, similar to this.
<xsl:template match="/" name="nav">
<!--do stuff-->
<xsl:if test="notEnd">
<xsl:call-template name="nav"></xsl:call-template>
</xsl:if>
</xsl:template>
The result it generates is top down (recursive):
<!--do stuff 5-->
<!--do stuff 4-->
<!--d...
I am new to XSLT. I need help comparing the value of two nodes' values in XML.
My sample XML:
<?xml version="1.0" encoding="utf-8"?>
<G1Export xmlns="">
<AgencyGroup xmlns="">
<Agency xmlns="">
<RecordType xmlns="">RecordType</RecordType>
<OrgId xmlns="">123</OrgId>
</Agency>
</AgencyGroup>
<BranchGrou...
Hi,
I have an existing XML document with some optional nodes and I want to insert a new node, but at a certain position.
The document looks something like this:
<root>
<a>...</a>
...
<r>...</r>
<t>...</t>
...
<z>...</z>
</root>
The new node (<s>...</s>) should be inserted between node <r> and <t>, resulting in:
<root>
...
Hi there,
I have, what I believe to be, an interesting situation at hand.
I have a car garage XML and am transforming it (using XSL) into HTML.
CAR XML:
<car>
<licensePlate>Car001</licensePlate>
<feature>
<color>Blue</color>
<fuel>Unleaded</fuel>
<feature>
</car>
I only want to print out <color> & <fuel> but want...
I'm converting all of our Crystal Reports to use a home-built reporting system. Essentially, I serialize report objects to XML, transform that with XSL to HTML/CSS. Everything works beautifully, except for the design process.
Once I get the XML built correctly, I have to open up the XSL and CSS in SciTE, edit, reload in IE, lather, rins...