Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Create a hardcopy of moelholm.com SCEA mock test

 
sam joe
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
[ ] [ ]
[]
 
sam joe
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
very nice ! thanks !
 
Billy Tsai
Ranch Hand
Posts: 1304
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is that mock exam sufficient practise for SCEA part1 or do we also need whizlabs SCEA?
 
venkatesh rajmendram
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
sam joe
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's great!
Thank you very much!
 
venkatesh rajmendram
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Excellent !!
Thanks
Venkatesh.
 
Billy Tsai
Ranch Hand
Posts: 1304
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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()
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic