This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]