[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Copying attribute value

Subject: Copying attribute value
From: "Uslu, Cihan Y (MED)" <Cihan.Uslu@xxxxxxxxxx>
Date: Thu, 11 Apr 2002 18:07:56 -0500
 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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.