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

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

Subject: RE: xsl:id() function does not work though my document has dtd associated
From: "Ranjan K. Baisak" <ranjanbaisak@xxxxxxxxx>
Date: Wed, 1 Jun 2005 02:07:21 -0700 (PDT)
xsl id
I even tried by creating a Document from xml string
which has DTD associated. But still id() returned
blank.

regards,
Ranjan
--- Michael Kay <mike@xxxxxxxxxxxx> wrote:
> 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@xxxxxxxxx] 
> > Sent: 01 June 2005 08:57
> > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> > Subject:  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
> 
> 


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

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.