[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Copying attribute value
Hi, I have an attribute whose deafult value is set to 'N' in DTD. ------------- optionalInfo (Y | N ) 'N' ------------ This is what I have in XML: --------------------------------- <a optionalInfo="Y"> <b/> <c/> </a> -------------------------------- I use this XSLT snippet: ------------------------------------------------------------- ....... <xsl:output method="xml" doctype-system="D:/docs/dtd/course_js.dtd"/> ........... <xsl:template match="*|@*|node() | text()"> <xsl:copy> <xsl:apply-templates select="*|@*|node() | text()"/> </xsl:copy> </xsl:template> .............. ------------------------------------------------------------ When I try to this element containing this attribute with it's value is set to 'Y', I still get 'N' after the transformation. I use the same DTD for both XML documents. What should I do to get the value in XML instead of the default value set in DTD? 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
|