This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Copying attribute value
- From: "Uslu, Cihan Y (MED)" <Cihan dot Uslu at med dot ge dot com>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Thu, 11 Apr 2002 18:07:56 -0500
- Subject: [xsl] Copying attribute value
- Reply-to: xsl-list at lists dot mulberrytech dot com
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