xsl-list
[Top] [All Lists]

RE: xsl:id() function does not work though my document has dtd associated

2005-06-01 01:16:44
I wouldn't rely on the id() function working in this environment. You may be
able to get it to work (at the very least, you'll need to validate your
document against the DTD rather than just creating the DTD) but it will
probably be rather system-dependent. It would be much easier and more robust
to declare a key in the stylesheet and use that instead.

Michael Kay
http://www.saxonica.com/ 

-----Original Message-----
From: Ranjan K. Baisak [mailto:ranjanbaisak(_at_)yahoo(_dot_)com] 
Sent: 01 June 2005 08:57
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] xsl:id() function does not work though my 
document has dtd associated

My Document has dtd associated, but still the id()
function does not seem to work.
Can anybody suggest me what might be wrong.
I am creating Document as below:

DOMImplementation domImpl =
dbf.newDocumentBuilder().getDOMImplementation();
DocumentType docType =
domImpl.createDocumentType("project","\"-//Test//Project
1.0//EN\"","c:/test/dtd/test.dtd");
Document newDoc =
domImpl.createDocument(null,"project",docType);

regards,
Ranjan


              
__________________________________ 
Discover Yahoo! 
Get on-the-go sports scores, stock quotes, news and more. 
Check it out! 
http://discover.yahoo.com/mobile.html

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--





--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>