Subject: New comer w/ questions From: "Frick, Gary" <gary.frick@xxxxxxxxxx> Date: Fri, 3 Mar 2000 15:07:50 -0800 |
Please be gentle this is my first time and I'm also a novice that needs to ramp up quickly on XML/XSL. My problem is that I have a SMALL sample (XML and XSL) files that is formed correctly, but it won't display anything except the debug markers that show that I'm getting into particular templates. The sample files are: <<flat2tbl.xsl>> <<dbpxml.xml>> The second question is how to treat NULL characters in my xsl:if statement The third question is why the debug statement that is talked about in Microsoft's MSDN library doesn't work as advertised. All it does is display the word 'xml'. Here is the excerpt from the MSDN library. One of the most frequent errors preventing output is select patterns that don't match the input data. Fortunately these are also fairly easy to fix. The debug line added to the example below uses <xsl:eval> to call the xml method on the current node, outputting the node and its children as preformatted XML source. <xsl:template match="address"> <PRE><xsl:eval>xml</xsl:eval></PRE> <xsl:apply-templates select="zipcode"/> </xsl:template> Comparing the actual XML data to the select pattern, spelling mistakes in element and attribute names can be found; for example, the data could show "zip-code" or "zipCode" as the correct element name. The context of the query can be checked-is "zipcode" a child of "address"? And the source data can also be checked for accuracy-does this "address" have a "zipcode"?
Attachment:
flat2tbl.xsl
Description: Binary data
Attachment:
dbpxml.xml
Description: Binary data
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: converting xsl to html, Rakesh Ajmera | Thread | How to test for NULL?, Frick, Gary |
RE: XML to HTML problem, Igor Nakshin | Date | Re: Creating IMG tags using MSXML, Michel CASABIANCA |
Month |