[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Newline problems
Thanks for your reply, Lars.
Actually, my entire output xml is empty, meaning most element tags exist without any values in the output xml. Here is the source xml and the xsl in more detail: <!DOCTYPE ABC [ ... ]><ABC> ... <info> <attr> <name> ponumber</name> <atomicValue> 12345</atomicValue> </attr> ... </info> ... </ABC> <?xml version = "1.0" encoding = "UTF-8"?> <xsl:transform xmlns:xsl = "http://www.w3.org/1999/XSL/Transform" version = "1.0"> <xsl:template match = "ABC"> <xsl:text disable-output-escaping="yes"><!DOCTYPE OrderProcessing></xsl:text> <xsl:element name = "Order"> <xsl:element name ="Info"> <xsl:apply-templates mode = "Attribs" select = "/ABC/info"/> </xsl:element> </xsl:element> </xsl:template> ... <xsl:template mode = "Attribs" match = "info"> <xsl:element name = "PO_NUMBER"> <xsl:value-of select="attr/atomicValue[../name='ponumber']"/> </xsl:element> ... </xsl:template> ... </xsl:transform> About your query about xsl-output doctype-public, our source xml has an inline DTD. I understand that doctype-public or system are to be used if we have an external DTD. Is that correct? Thanks, Vishwajit. From: "Lars Huttar" <lars_huttar@xxxxxxx> Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx> Subject: RE: Newline problems Date: Thu, 1 May 2003 17:24:44 -0500 _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
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
|