[Home] [By Thread] [By Date] [Recent Entries]
At 2007-10-03 23:28 -0400, Alice Ju-Hsuan Wei wrote:
I am trying to use the id function in XSLT to extract the publication id information from the "attribute" and have the output display the name of the publisher itself as it is. The complete code is as follows: I note there is no DTD declaration of the attribute that has the ID type ... therefore, if you are using XSLT 1.0 you will need: <!DOCTYPE bookshelf [ <!ATTLIST publication xml:id ID #IMPLIED> ]> <bookshelf> If you are using XSLT 2.0, it is up to your XSLT processor to choose to implicitly support xml:id (ref: 3.11 note), and if it does not, the above is required. I tried using the id function: If the processor is not instructed which attributes of which elements have attributes of type ID (the name is irrelevant; the type is given in a DTD declaration) for a given document, then the id() table is empty for the document. I hope this helps. . . . . . . . . . . . . . Ken
|

Cart



