If you want to write a separate XSL file instead of using the DOM, try the <xsl:if> function. It's format is <xsl:if test="your test here...">XSL code to be processed if test is true</xsl:if>
Here is an example based on your XML (using if in two places, phone ext and middle name...
flumpy is right: here is an XSL document that will do your translation:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="childElement">
<input...
I have to agree that while in certain areas XML and databases "compete", they are really different tools offering different features. Here are areas where XML has the advantage:
1) irregular data structure: take your average XHTML page (or HTML -- the idea is the same, just don't...
Thanks to those who broadened my horizons! I did not know about this behavior. :D
Notice that the local variables window shows an uninitialized string? Also, as soon as you ReDim, this changes. This suggests there IS a way to find this out (but I don't know it yet).
There are a couple of...
Have you already looked at the LBound and UBound functions?
You can easily create a loop like this:
Dim idx as Long
For idx = LBound(my) to UBound(my)
' ...
Next
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.