Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. simonchristieis

    Use of uninitialized value in substitution (s///) error

    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 =~...
  2. simonchristieis

    Transform XML from command line

    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')...
  3. simonchristieis

    Scientific Notation

    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...
  4. simonchristieis

    xmlreader - performance

    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
  5. simonchristieis

    Can anyone recommend any good online xslt 2.0 tutorials

    Regards Simon
  6. simonchristieis

    Loading data from a text file

    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
  7. simonchristieis

    Find local path

    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
  8. simonchristieis

    using document() and unc paths

    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"...
  9. simonchristieis

    xsl:key issues, can anyone explain ?

    when I use a key: <root> <node> <name>foo</name> </node> <node> <name>bar</name> </node> </root> <xsl:key name="bob" match="node[contains(name,'foo')]" use="name"/> <xsl:apply-templates select="root/node[count(.|key('bob',name)[1])=1]" mode="test"/> <xsl:template match="node"...
  10. simonchristieis

    tsuji - you are beaten - unfixable problem (?)

    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...
  11. simonchristieis

    Using current() to get to document root

    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"/>...
  12. simonchristieis

    .xsd xs:int overloading

    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>...
  13. simonchristieis

    Who wants a easy friday star ?

    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 ?
  14. simonchristieis

    Dynamic created controls not firing event handlers

    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
  15. simonchristieis

    nText update problem

    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...
  16. simonchristieis

    xml variable question

    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...
  17. simonchristieis

    For xml explicit question

    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], ''...
  18. simonchristieis

    TableAdapter and sql server generated xml

    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 =...
  19. simonchristieis

    Apply templates on each text string ....

    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...
  20. simonchristieis

    Swear words list for filter

    Does anyone have a definitive swear word list for a online filter I'm using ? Alternatively, just swear at me and I'll jot them down ! 8^)

Part and Inventory Search

Back
Top