I'm new to Perl, just trying to create an xml file from a csv file:
{
my($fi) = $ARGV[0];
my($fo) = $ARGV[1];
my(@fields);
my(@fieldHeaders);
my($row);
my($i_count)=1;
my($ii_count)=0;
my($string);
sub trim($)
{
$string = shift;
$string =~ s/^\s+//;
$string =~ s/\s+$//;
$string =~...
Not exactly on subject but I wasn't sure where it would fit.
But here goes:
I am trying to tranform an xml file using xslt using the saxon parser, the saxon parser is called through a java line run through dos on windows server.
The problem lies when the xslt has a document('Output.xml')...
I have a value - over 1,000,000 or less than 0.000001 and I want to output it (via xslt 2.0) as it's decimal value rather than the exponential that is being displayed.
Any ideas if there is a way to do this, is there a simple way to achieve this eg:
<xsl:value-of...
Has any looked at the performance improvement on using .net's xmlreader to parse xml files using xslt against command line parsing.
Is there any performance improvement on parsing larger zml files - 100-200 meg ?
Thanks in advance.
Simon
Can I load text from a text file using xslt ?
kinda like this:
<xsl:variable name="test">
<xsl:value-of select="document('C:\Text.txt')"/>
</xsl:variable>
<xsl:value-of select="$test"/>
Anyone got any ideas ?
Thanks in advance
Simon
How can I find the local path of where I am located in the directory ?
eg
open cmd prompt.
cd c:/test
set localpath=whatevercommand
echo %localpath%
c:/test
Thanks in advance
I am trying to load an xslt document from a UNC path, and have a bit of an issue.
Using the msxml parser there is no problem loading a file like:
<xsl:param name="inputDirectory" select="'\\server\path'"/>
<xsl:param name="outputFile" select="'file.xslt'"/>
<xsl:variable name="Data"...
Well, I've been on this for a bit, and I can't see a way round it, so my last resort is tsuji (or others) in tek-tips.
I am trying to create a node set dynamically within a variable, but then I want to run xpath against that node set, perhaps it's easier to just show you some code to explain...
I am trying to get back to the root of a document using the current() function, can anyone help ?
xml
<Root>
<node1>
<node2/>
</node1>
</Root>
DataIsland.xsl
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet xmlns:edi="http://">
<edi:test type="node1" value="foobar"/>...
I am looking to overload a simple type that has an xs:int restriction, I want the next restriction to be xs:int or empty. I know I can use the same process for an xs:string.
<snipped>
<xs:simpleType name="VerifyDateType">
<xs:restriction base="VerifyDateType"/>
</xs:simpleType>...
Anyone know the events handled by a file upload input element ?
<input type="file">
I want to show a label when they have selected the file to upload, any wanna help - it's friday and a quick google didn't help.
Does it support onchange ?
I am creating a linkbutton using xml / xslt.
However, when the page renders the method attached to the event handler doesn't fire.
I parse the controls into a placeholder on page init, and can see the controls within the trace.
I am using master pages.
Any ideas ?
Thanks in advance
Simon
I want to update text in a temp table and concatenate a string:
declare @tData table
(
iDataID int identity(1,1),
cText nText,
cTotalText nText
)
Insert into @tData(cText)Values('bob')
Update @tData set cTotalText = cText + 'harry'
I get this error:
The data types ntext and...
I am trying to assign the output of a for xml explicit statement to an xml variable, but I get an error:
The FOR XML clause is invalid in views, inline functions, derived tables, and subqueries when they contain a set operator. To work around, wrap the SELECT containing a set operator using...
I have a stored proc that returns xml
CREATE PROCEDURE [dbo].[Select_Test]
AS
BEGIN
SET NOCOUNT ON;
Select 1 as Tag,
null as Parent,
null as [Level2!1],
'' as [Level3!2]
Union All
Select 2 as Tag,
1 as Parent,
null as [Level2!1],
''...
I have a stored proc that returns xml data (for xml explicit), and I am tring to get to that data using the auto-generated table adapters through the gui (vs2k5).
private void LoadData()
{
// _aadt = data table
// _aata = table adapters
_aadt =...
What I would like to do do apply templates on each word in a sentence.
For example,
xml
<root>
<test>One Two Three</test>
</root>
<xsl:apply-templates select="dunno where to start" mode="stuff"/>
<xsl:template match="*" mode="markup">
<xsl:if test=".='One'">Oooh One</xsl:if>
<xsl:if...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.