Tristan Taylor

Greenhorn
+ Follow
since Sep 02, 2001
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Tristan Taylor

Hi All,
I was wondering if anyone knows how to xsl:test for the presence of a comma or a fullstop at the end of the text within an element?
E.g 1
<publisher>Penguin,</publisher>
E.g 2
<publisher>Penguin.</publisher>
Thanks for your help,
Tristan
Hi everyone,
Can you please help me with an xsl:if test xpath expression that tests for the occurence of the following xml. The DTD is provided.
What I need to test for is that within topic the first thing after title is sub.topic, and within that sub.topic the first thing after title is para.module, and within that para.module the first thing is activity.reading.

XML:
<topic>
<title>Planning and Research</title>
<sub.topic>
<title>Task Analysis</title>
<para.module>
<activity.reading>Read pages 45-47.</activity.reading>
</para.module>
</sub.topic>
</topic>
DTD:
<!ELEMENT topic (title, para.module*, sub.topic*)>
<!ELEMENT sub.topic (title, para.module*, idea*)>
<!ELEMENT para.module (#PCDATA | activity.reading)>

Thanks in advance to the kind soul who helps me solve this dilemma.
I am planning to take the IBM certification exam in the upcoming months. Can anyone tell me the format/interface of the test itself. Is it taken in a similar manner to XML@whiz, or is it a written test?
Thanks a lot guys, that information is very helpful.
Cheers,
Tristan
Hi everyone,
Would anyone be able to tell me which XML parser they prefer between Xalan and XT for use with JAXP, and why.
Thanks,
Tristan
Could anyone please show me how to format fo age-number to appear as small roman numerals. e.g i , ii, iii, iv.
Thanks,
Tristan
Thanks a Lot Beno�t,
You've made my life a lot easier.
Cheers,
Tristan
Could anyone please explain to me how to create an XPATH expression to retrieve data that relates to a specific ID within an IDREFS string.
I would like to retrieve the data within the 'description' tags for each 'event' whose id's are referenced in the '@events' within the 'requirement' element.

Could anyone please explain this using the below information?
Thanks,
Tristan

DTD:
<!ELEMENT requirement (#PCDATA)>
<!ATTLIST requirement number ID #REQUIRED
events IDREFS #REQUIRED>
XML:
<requirement id="req1" events="ev1 ev2">All solutions to existing problems must be authorized by the technical director</requirement>
<event id="ev1">
<description>creating a solution</description>
</event>
<event id="ev2">
<description>implementing solution</description>
</event>