[xsl] Copying attribute value

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