Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Search Forums
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Showing results 1 to 25 of 29
Search took 0.01 seconds.
Search: Posts Made By: mrame
Forum: XSLT August 9th, 2011, 07:50 AM
Replies: 6
Views: 632
Posted By mrame
Thumbs up Try the below: <xsl:stylesheet...

Try the below:

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
<xsl:output method="html" indent="yes"/>
<xsl:template match="table">
<table>
...
Forum: XSLT August 9th, 2011, 07:18 AM
Replies: 6
Views: 632
Posted By mrame
Thumbs up Try the below: <xsl:stylesheet...

Try the below:


<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
<xsl:output method="html" indent="yes"/>
<xsl:template match="table">
<table>
...
Forum: XSLT April 6th, 2010, 01:30 AM
Replies: 36
Views: 5,344
Posted By mrame
Thumbs up Please find the needed changes below: 1. Add a...

Please find the needed changes below:
1. Add a version (1.0 or 2.0) attribute to <xsl:stylesheet ...
2. Change xmlns:xsl="http://www.w3.org/TR/WD-xsl" to...
Forum: XSLT April 1st, 2010, 03:17 AM
Replies: 36
Views: 5,344
Posted By mrame
Thumbs up With the below xml sample <?xml...

With the below xml sample

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="Test.xsl" type="text/xsl"?>
<Lineage>
<sample_001>
<time>06:03:09.750000</time>
...
Forum: XSLT March 12th, 2010, 05:08 AM
Replies: 9
Views: 2,539
Posted By mrame
Thumbs up Replace "following::label[1]" to...

Replace "following::label[1]" to "preceding::label[1]" and check.
Forum: XSLT March 8th, 2010, 03:56 AM
Replies: 5
Views: 1,625
Posted By mrame
Thumbs up With XSLT2.0, try the below: ...

With XSLT2.0, try the below:


<xsl:variable name="docs" select="collection('file:///xml_files_path/?select=*.xml')"/>

<xsl:template match="/">
<xsl:for-each select="$docs">
<xsl:copy-of...
Forum: XSLT March 4th, 2010, 07:26 AM
Replies: 6
Views: 913
Posted By mrame
Thumbs up try the below: <xsl:template match="a"> ...

try the below:

<xsl:template match="a">
<xsl:copy>
<xsl:apply-templates select="b/c"/>
<xsl:apply-templates select="b"/>
</xsl:copy>
</xsl:template>
<xsl:template match="c">
<xsl:copy-of...
Forum: XSLT October 27th, 2009, 06:45 AM
Replies: 11
Views: 2,288
Posted By mrame
Thumbs up That is what I have already posted.Try with the...

That is what I have already posted.Try with the below:
<xsl:variable name="dummy" select="ArrayOfBookMark/BookMark[ShortName='Asp-7041-EndVar1']/Value"/>
<xsl:variable name="dummy1">
<xsl:choose> ...
Forum: XSLT October 27th, 2009, 01:05 AM
Replies: 11
Views: 2,288
Posted By mrame
Thumbs up With mhkay's above idea, try the...

With mhkay's above idea, try the below:<xsl:template match="/">
<xsl:variable name="dummy" select="ArrayOfBookMark/BookMark[ShortName='Asp-7041-EndVar1']/Value"/>
<xsl:variable name="dummy1">...
Forum: XSLT October 26th, 2009, 01:02 AM
Replies: 11
Views: 2,288
Posted By mrame
Thumbs up Your question is not clear. Post your input xml...

Your question is not clear. Post your input xml and xsl script and explain what yuo want to achieve or post the needed output xml.
Forum: XSLT October 23rd, 2009, 04:26 AM
Replies: 11
Views: 2,288
Posted By mrame
Thumbs up Try the below:<xsl:template match="/"> ...

Try the below:<xsl:template match="/">
<xsl:variable name="dummy" select="ArrayOfBookMark/BookMark[ShortName='Asp-7041-EndVar1']/Value"/>
<xsl:choose>
<xsl:when test="($dummy!='')">
<xsl:variable...
Forum: XSLT September 2nd, 2009, 06:49 AM
Replies: 13
Views: 1,350
Posted By mrame
Thumbs up Try the below: <xsl:template match="/"> ...

Try the below:

<xsl:template match="/">
<html>

<head><title>Test</title></head>
<body>

<xsl:variable name="r" select="records"/>
<xsl:variable name="posi" select="//plan"/>
Forum: XSLT September 2nd, 2009, 05:09 AM
Replies: 13
Views: 1,350
Posted By mrame
Thumbs up Try the below: <xsl:key name="type"...

Try the below:

<xsl:key name="type" match="plan" use="@plantype"/>

<xsl:template match="/">
<html>

<head><title>Test</title></head>
<body>
Forum: XSLT September 1st, 2009, 06:57 AM
Replies: 10
Views: 1,599
Posted By mrame
Thumbs up You should first declare key like the below: ...

You should first declare key like the below:


<xsl:key name="type" match="plan" use="@plantype"/>


You have added this in your second thread in this post.
Forum: XSLT September 1st, 2009, 06:19 AM
Replies: 6
Views: 3,061
Posted By mrame
Thumbs up For an input xml <records> <plan> 1 ...

For an input xml

<records>
<plan>
1
</plan>
<plan>
2
</plan>
<plan>
Forum: XSLT September 1st, 2009, 06:09 AM
Replies: 10
Views: 1,599
Posted By mrame
Thumbs up Try this: <xsl:template match="records"> ...

Try this:

<xsl:template match="records">
<html>
<head><title>Test</title></head>
<body>
<xsl:variable name="first" select="plan"></xsl:variable>
<xsl:for-each select="plan[generate-id() =...
Forum: XSLT August 31st, 2009, 03:03 AM
Replies: 13
Views: 1,350
Posted By mrame
Thumbs up You should get a note on basics of XSLT file...

You should get a note on basics of XSLT file structure.
Try the below:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">...
Forum: XSLT August 31st, 2009, 02:05 AM
Replies: 13
Views: 1,350
Posted By mrame
Thumbs up Try this: <xsl:key name="type" match="plan"...

Try this:

<xsl:key name="type" match="plan" use="@plantype"/>

<xsl:template match="records">
<xsl:copy>
<xsl:for-each select="plan[generate-id() = generate-id(key('type', @plantype)[1])]">...
Forum: XSLT August 28th, 2009, 05:35 AM
Replies: 5
Views: 724
Posted By mrame
Thumbs up If your ouput is html, then definitely ...

If your ouput is html, then definitely

<xsl:value-of select="field/fieldvalue2" disable-output-escaping="yes"/>

will give the required result BATTLE PLAN when you view the html file.
...
Forum: XSLT June 9th, 2009, 01:24 AM
Replies: 4
Views: 932
Posted By mrame
Once I used the below code. But you should...

Once I used the below code. But you should install tech-explorer, using which you can view TEX equations in IE. Try the below:


<OBJECT ID="matrix" TYPE="application/x-techexplorer"...
Forum: XSLT May 21st, 2009, 04:38 AM
Replies: 10
Views: 14,470
Posted By mrame
Thumbs up Try this: <xsl:template match="*"> <xsl:if...

Try this:

<xsl:template match="*">
<xsl:if test=". != ''">
<xsl:copy>
<xsl:copy-of select="@*"/>
<xsl:apply-templates></xsl:apply-templates>
</xsl:copy>
</xsl:if>
</xsl:template>
Forum: XSLT April 30th, 2009, 06:06 AM
Replies: 6
Views: 542
Posted By mrame
Thumbs up With <para> as the top most element, try the...

With <para> as the top most element, try the below code:


<xsl:template match="para">
<p>
<xsl:apply-templates></xsl:apply-templates>
</p>
<xsl:if test="//ref">
<h3>Table</h3>
<table>
Forum: XSLT April 30th, 2009, 05:38 AM
Replies: 6
Views: 542
Posted By mrame
Thumbs up Try this: <xsl:template match="ref"> ...

Try this:

<xsl:template match="ref">
<reference><xsl:value-of select="."></xsl:value-of></reference>
<table>
<tr><td><xsl:value-of select="@type"></xsl:value-of></td><td><xsl:value-of...
Forum: XSLT April 29th, 2009, 12:40 AM
Replies: 8
Views: 786
Posted By mrame
Thumbs up Try with the changes below: 1. I changed...

Try with the changes below:

1. I changed the lines like

<xsl:when test="$month=01">January</xsl:when>


to ( i have inserted single quote character before 01 below)

<xsl:when...
Forum: XSLT April 28th, 2009, 05:12 AM
Replies: 5
Views: 1,376
Posted By mrame
Thumbs up Try the below stylesheet: <xsl:stylesheet...

Try the below stylesheet:

<xsl:stylesheet exclude-result-prefixes="exslt saxon bpws cis ihmap p0 p1" version="2.0" ...>
<xsl:output encoding="UTF-8" indent="yes" method="xml"/>
<!--<xsl:variable...
Showing results 1 to 25 of 29

 


All times are GMT -4. The time now is 08:20 PM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.