[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] New comer w/ questions
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 Attachment:
dbpxml.xml
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|