File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes Create a hardcopy of moelholm.com SCEA mock test Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "Create a hardcopy of moelholm.com SCEA mock test" Watch "Create a hardcopy of moelholm.com SCEA mock test" New topic
Author

Create a hardcopy of moelholm.com SCEA mock test

sam joe
Greenhorn

Joined: Jul 23, 2003
Posts: 24
Moelholm.com did a wonderful scea mock test, thanks a million here.
However, sometimes, we need a hardcopy of all those questions and answers.
You can do the following to get a hardcopy of it
1. Download three xml/dtd files from
http://moelholm.com/app/mock/sceamock/xml/
to a local directory, for example, c:\scea
2. save the following scripts into a file called c:\scea\sceaMock.xls
<?xml version="1.0"?>
<xsl:stylesheet
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns="http://www.w3.org/TR/REC-html40">
<xsl:template match="/">
<html>
<body>
<h2>SCEA Mock Exam Questions
</h2>
<xsl:for-each select="Mock-test/Question">
<p>
<table border="0">
<tr>
<th align="left">
<![CDATA[[]]>
<xsl:value-of select="@id"/>
<![CDATA[] ]]>
<xsl:value-of select="Question-description"/>
</th>
</tr>
<tr>
<td align="left">
<ol type="A">
<xsl:for-each select="Option">
<li><xsl:value-of select="Option-description"/></li>
</xsl:for-each>
</ol>
</td>
</tr>
</table>
</p>
</xsl:for-each>

<hr></hr>

<h2>SCEA Mock Exam Answers
</h2>
<xsl:for-each select="Mock-test/Question">
<p>
<table border="0">
<tr>
<th align="left">
<![CDATA[[]]>
<xsl:value-of select="@id"/>
<![CDATA[] ]]>
<xsl:value-of select="Question-description"/>
<![CDATA[[]]>
<xsl:value-of select="@objective"/>
<![CDATA[] ]]>
</th>
</tr>
<tr>
<td align="left">
<ol type="A">

<xsl:for-each select="Option">
<li>
<![CDATA[ []]><xsl:value-of select="@value"/><![CDATA[] ]]>
<xsl:value-of select="Option-description"/>
</li>
</xsl:for-each>
</ol>
</td>
</tr>
</table>
</p>
</xsl:for-each>

</body>
</html>
</xsl:template>
</xsl:stylesheet>
3. add
<?xml-stylesheet type="text/xsl" href="file://C:\scea\sceaMock.xsl"?>
before the line
<!DOCTYPE Mock-test SYSTEM "mocktest.dtd"> in scea_test_1.xml & scea_test_1.xml,
4. Now, use IE to open scea_test_1.xml or scea_test_2.xml,
Enjoy!!!
Luciano Queiroz
Ranch Hand

Joined: Feb 04, 2002
Posts: 172
I could not view the questions. There must exist an error in the script you offered us.
I followed your instructions but all I could see is printed bellow.
Could you please post the script again?
Thanks!

SCEA Mock Exam Questions
[ ]

--------------------------------------------------------------------------------
SCEA Mock Exam Answers
[ ] [ ]
[]


<b>Luciano Queiroz</b><br/>
 Brazil<br/>
 <i>SCJP 1.2, SCWCD, IBM 141, IBM 483, SCJP 1.4, IBM 484, IBM 287, SCBCD, SCEA, SCJP 5.0, SCJP 6.0, SCWCD 5</i>
sam joe
Greenhorn

Joined: Jul 23, 2003
Posts: 24
Sorry for mistake.
Step 2. The 'sceaMock.xls' should be 'sceaMock.xsl'
By the way, when you use IE to download mocktest.dtd, the brower try to change the name to mocktest.xml, you should explicitly specify the file name to mocktest.dtd
.
peter parker
Ranch Hand

Joined: Jul 11, 2001
Posts: 69
very nice ! thanks !
Billy Tsai
Ranch Hand

Joined: May 23, 2003
Posts: 1297
is that mock exam sufficient practise for SCEA part1 or do we also need whizlabs SCEA?


BEA 8.1 Certified Administrator, IBM Certified Solution Developer For XML 1.1 and Related Technologies, SCJP, SCWCD, SCBCD, SCDJWS, SCJD, SCEA,
Oracle Certified Master Java EE 5 Enterprise Architect
venkatesh rajmendram
Ranch Hand

Joined: Dec 05, 2000
Posts: 130
Originally posted by Luciano Queiroz:
I could not view the questions. There must exist an error in the script you offered us.
I followed your instructions but all I could see is printed bellow.
Could you please post the script again?
Thanks!

SCEA Mock Exam Questions
[ ]

--------------------------------------------------------------------------------
SCEA Mock Exam Answers
[ ] [ ]
[]

I am getting same as above, even after changing as xsl and dtd appropriately
Thanks
Venkatesh


SCJP 1.4, SCWCD<p>Ours is a world where people don't know what they want and are willing to go through hell to get it.<br /> - Don Marquis
sam joe
Greenhorn

Joined: Jul 23, 2003
Posts: 24
I use IE6.0 to browse the XMLs. I am not sure what will be displayed in other browser. If your browser display nothing, please post your browser type and version here. By the way, I changed the XSLT to display REASON in ANSWERS & fixed wrong file name. Please follow these correct steps instead of previous post.
1. Download three xml/dtd files from
http://moelholm.com/app/mock/sceamock/xml/
to a local directory, for example, c:\scea
NOTE: when you save mocktest.dtd, save it as 'mocktest.dtd'. IE tries to save it as 'mocktest.xml'
2. save the following scripts into a file called c:\scea\sceaMock.xsl
<?xml version="1.0"?>
<xsl:stylesheet
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns="http://www.w3.org/TR/REC-html40">
<xsl:template match="/">
<html>
<body>
<h2>SCEA Mock Exam Questions
</h2>
<xsl:for-each select="Mock-test/Question">
<p>
<table border="0">
<tr>
<th align="left">
<![CDATA[[]]>
<xsl:value-of select="@id"/>
<![CDATA[] ]]>
<xsl:value-of select="Question-description"/>
<xsl:number level="multiple" count="Option"/>
</th>
</tr>
<tr>
<td align="left">
<ol type="A">
<xsl:for-each select="Option">
<li><xsl:value-of select="Option-description"/></li>
</xsl:for-each>
</ol>
</td>
</tr>
</table>
</p>
</xsl:for-each>

<hr></hr>

<h2>SCEA Mock Exam Answers
</h2>
<xsl:for-each select="Mock-test/Question">
<p>
<table border="0">
<tr>
<th align="left">
<![CDATA[[]]>
<xsl:value-of select="@id"/>
<![CDATA[] ]]>
<xsl:value-of select="Question-description"/>
<![CDATA[[]]>
<xsl:value-of select="@objective"/>
<![CDATA[] ]]>
</th>
</tr>
<tr>
<td align="left">
<ol type="A">

<xsl:for-each select="Option">
<li>
<![CDATA[ []]><xsl:value-of select="@value"/><![CDATA[] ]]>
<xsl:value-of select="Reason"/>
</li>
</xsl:for-each>
</ol>
</td>
</tr>
</table>
</p>
</xsl:for-each>

</body>
</html>
</xsl:template>
</xsl:stylesheet>

3. add
<?xml-stylesheet type="text/xsl" href="file://C:\scea\sceaMock.xsl"?>
before the line
<!DOCTYPE Mock-test SYSTEM "mocktest.dtd"> in scea_test_1.xml & scea_test_1.xml,
4. Now, use IE 6.0 to open scea_test_1.xml or scea_test_2.xml
Victor Pan
Ranch Hand

Joined: May 01, 2002
Posts: 36
That's great!
Thank you very much!


Java makes world work!!!
venkatesh rajmendram
Ranch Hand

Joined: Dec 05, 2000
Posts: 130
Excellent !!
Thanks
Venkatesh.
Billy Tsai
Ranch Hand

Joined: May 23, 2003
Posts: 1297
what are the chapters of Master EJB2 by ED Roman and Enterprise Java Beans released by O'Reilly should I read for SCEA part 1?
venkatesh rajmendram
Ranch Hand

Joined: Dec 05, 2000
Posts: 130
Hi Billy,
I am reading the Ed Roman second edition. I guess one book must be sufficient. I am reading all the chapters.
I feel the exam itself is so vast , So thought to read all chaps.
- Venkatesh
Bernd Pross
Greenhorn

Joined: Jul 02, 2003
Posts: 10
Thanks Sam for the Mock test!
Here an addition for OX X users:
All worked fine with Netscape 7.0 (OX 10.2), MS IE crashed, Safari did not do any format on my machine.
Regards,
Bernd
javascript:%20x()
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Create a hardcopy of moelholm.com SCEA mock test
 
Similar Threads
xsl issue for newbie
Remove unwanted space before and after the table using javascript
Why this is not working.......
looping xsl
xmlns and xsl