User Profile
Collapse
-
Generic? What defines the databases you ultimately will choose to accept? People will write database xml in countless different ways, so there isn't really a good 'generic' way of doing such a thing, unless you want to limit it in a specific way. -
It'd be easier just to put the NAME CODE and DESC in a sub-element. Am trying to understand the rationale of requesting to do it in the way specified in your schema.Leave a comment:
-
Ah true, my brain accidentally fixed the code so that it would actually do something. Must have been thinking of an until command instead.Leave a comment:
-
It's actually really simple. Take the binary value and divide by 0x01000000.
Multiply the decimal part by 60 (60 minutes in a degree)Last edited by jkmyoung; Mar 28 '11, 06:54 PM.Leave a comment:
-
On post #2, Think the following was mixed up. Should be:
1. If i/x < 1 the loop won't run
2. If i/x >= 1 the loop will run and i/x will get smaller until i/x < 1
Take the condition the first time is 1 >= i/10 ?
is 10 >= i?
==
Another example
Set n = 10, i get set to 10
First loop i/x = 10/10 = 1
i := 9
x := 11
Second time through loop:...Leave a comment:
-
There's an art to it which is somewhat hard to explain in just form posts. You really have to look at which variables are controlling the flow of your code. Most Time complexity analysis involved looking at loops and seeing how the variables change each time the code loop is run.
- Find the looping or if/else conditions for each section of the code.
- Isolate the variables in these conditions that control code flow
- Examine how these variables
Leave a comment:
-
Algorithms like Fibonacci are more mathematically oriented than the rest of your work. You may want to study data structures and see how they work, eg the back end implementation of queues, hashes, trees, binary sorts, etc.. Other than that, your question is quite vague and would have to be expanded upon.Leave a comment:
-
Your xml should also specify the namespace eg xmlns:supr="www .somenamespace. com" otherwise it is invalid xml.Leave a comment:
-
3 choices: 1. Use node-set. 2. Use XSLT 1.1. 3. Don't use a variable.
Assuming you're using XSLT 1.0 and not 1.1, since you're getting this error.
1. You have to use a (non-standard) node-set extension function in order for this to work. Depending on your environment, it might be msxsl:node-set(), where
xmlns:msxsl="ur n:schemas-microsoft-com:xslt" or xmlns:exsl:node-set() where exsl="http://exslt.org/com...Leave a comment:
-
I don't understand how you are running the balance. Shouldn't it be a single column instead of 2?
You need a starting balance (perhaps 0?) and then add the credits and subtract the debts for each don't you?Leave a comment:
-
This is possible in many ways, but what are you using to communicate from xml to the mysql db? Perl? C#? The answers will vary greatly depending on what library sets you are using.
Also, if you had some sort of relevant schema for the affected tables and fields in your database it would help.Leave a comment:
-
What clasess are you using to read, and write the xml?
Are you using XmlDocument objects?
Do you know the values of all your nodes before you create it, or do you have to read the values of them beforehand?
Examples of creating nodes: http://msdn.microsoft.com/en-us/library/fw1ys7w6.aspxLeave a comment:
-
Call template calls a specific named template.
There isn't really a specific name template action, except to put a name attribute on a template.
Apply-templates implicitly calls templates based on the xpath and name of the node it is being called on.Leave a comment:
-
See Muenchian grouping:
https://www.jenitennison.com/xslt/gr...muenchian.html
Your filter on your nodes should be in your key and for-each....Leave a comment:
-
-
-
Why don't you set a temporary variable to the result of createSSN, and check if it's null?
Not sure if I'm missing something here.
You really need to post how you're running the SQL query; that is the important part.Leave a comment:
-
jkmyoung replied to Why do my XML and XSLT files work fine in editor, but not in Firefox or Explorer?in XMLHave you changed the address accordingly in your xml file? Where are you opening the xml file from, eg what directory is it stored in? Perhaps it's a cached copy, or has specific project settings.
That is some pretty ugly XSLT, but I'd expect as much using mapforce. Really shouldn't have data (besides headings perhaps) in the XSLT.Leave a comment:
-
Basically, you'll be using the position function.
Code:<xsl:for-each select="//contents/Data"> <tocentry level="{//level/Data[position()=position(current())]" ....>
<xsl:variable name="pos" select="positio n()"/>
and then have ...Data[position()= $pos]...Leave a comment:
-
You would almost never pass PHP code through the XML, for security among other reason. Do you want to be able to read the XML using PHP? Are you viewing this 'slideshow' in an internet browser?Leave a comment:
No activity results to display
Show More
Leave a comment: