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 | 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 55
Search took 0.01 seconds.
Search: Posts Made By: Pankaj C
Forum: XSLT February 26th, 2008, 02:25 AM
Replies: 3
Views: 935
Posted By Pankaj C
You got me correctly, I am in fact looking for...

You got me correctly, I am in fact looking for conditional outputs depending upon journal code.

But instead of using

<xsl:template match="article[meta/journalcode = 'CEDE']">
...
Forum: XSLT February 23rd, 2008, 04:06 AM
Replies: 3
Views: 935
Posted By Pankaj C
Hi, I've been just going thru the book and I...

Hi,

I've been just going thru the book and I guess I need to look into the <xsl:import> element. This means I need to write separate stylesheets and later call them in main one.

Any...
Forum: XSLT February 23rd, 2008, 03:40 AM
Replies: 3
Views: 935
Posted By Pankaj C
Different conditional outputs in same Stylesheet

Hi all,

I am writing a stylesheets for different journal (basically for print), wherein the order of authors, titles etc varies (<ref-book> here)depending upon the <journalcode>.

See the...
Forum: XSLT February 18th, 2008, 06:00 AM
Replies: 4
Views: 958
Posted By Pankaj C
Also I need to add new attributes to <author> and...

Also I need to add new attributes to <author> and <affiliation id="AF0001"> elements.

Thanks a lot.

Pankaj
Forum: XSLT February 18th, 2008, 05:39 AM
Replies: 4
Views: 958
Posted By Pankaj C
Thanks Michael and Sam, its works. I've another...

Thanks Michael and Sam, its works. I've another issue <xsl:copy> copies all <author>s and their corresponding children as it is, which is quite fair which I asked earlier.

Problem: I need to put...
Forum: XSLT February 16th, 2008, 03:04 AM
Replies: 4
Views: 958
Posted By Pankaj C
Moving markup to different position

Hi all,

I've requirement wherein I need to move an element and its subsequent child element to other location after transformation (this is basically for print purposes). I am trying to achieve...
Forum: XSLT February 15th, 2008, 08:59 AM
Replies: 2
Views: 2,104
Posted By Pankaj C
"Any well-behaved software processing the output...

"Any well-behaved software processing the output will treat the Unicode character as 100% equivalent to the original entity reference."

Well in that case I think I will be lucky. I need to import...
Forum: XSLT February 15th, 2008, 08:31 AM
Replies: 2
Views: 2,104
Posted By Pankaj C
Character to Unicode entities

Hi all,

Can somebody let me know why my character entities are getting converted into unicode values in the resulting transformed output.

My Input is ...
Forum: XSLT February 13th, 2008, 06:42 AM
Replies: 5
Views: 1,494
Posted By Pankaj C
Thanks Sam and Michael. I think I need to match...

Thanks Sam and Michael. I think I need to match the element along with exact path.

Sam in case of mixed content case I think I need to use string() instead of text(). Will take work or there is...
Forum: XSLT February 13th, 2008, 06:16 AM
Replies: 5
Views: 1,494
Posted By Pankaj C
Well I do have the mixed content in my xml and...

Well I do have the mixed content in my xml and also I want to perform this on certain elements and not on all.

Your code seems to be applying on each and every element of xml document.

Correct...
Forum: XSLT February 13th, 2008, 04:45 AM
Replies: 5
Views: 1,494
Posted By Pankaj C
String to attribute and vice versa

Hi all,

Is there any better/quickest way of converting string of tag to its its value and later while re-transforming back it to orginal converting those attribute values back to string. Let me be...
Forum: XSLT October 31st, 2007, 05:40 AM
Replies: 4
Views: 1,436
Posted By Pankaj C
Apologies, I mean I have given a thought of...

Apologies, I mean

I have given a thought of <xsl:number> but had doubt, of using it in <xsl:attribute>.

Pankaj
Forum: XSLT October 31st, 2007, 05:29 AM
Replies: 4
Views: 1,436
Posted By Pankaj C
<xsl:attribute name="att">bb<xsl:number...

<xsl:attribute name="att">bb<xsl:number level="any" format="a"/></xsl:attribute>
is what I was looking for. I have given a thought of <xsl:number> but had doubt, of using it in <xsl:number>.

I...
Forum: XSLT October 30th, 2007, 07:47 AM
Replies: 4
Views: 1,436
Posted By Pankaj C
Incrementing attribute value

Hi,

I've a very specific requirement in my style sheet, wherein I need to increment (lexical) the attribute values of particular element, for instance “bba”, “bbb”, “bbc” and so on....
Forum: XSLT October 23rd, 2007, 06:44 AM
Replies: 12
Views: 1,744
Posted By Pankaj C
I think I will go for Gestalt (which I...

I think I will go for Gestalt (which I unfortunately never tested), although AltovaXml looks to be pretty good but alas it is compatible for Windows version and I am on MAC.

Thanks anyway.
...
Forum: XSLT October 23rd, 2007, 05:05 AM
Replies: 12
Views: 1,744
Posted By Pankaj C
Thanks for info. Need to look into these. Any...

Thanks for info. Need to look into these. Any recommendations for manuals/tutorials for 2.0 version apart from Michael's one ( XSLT Programmer's Reference), which is already in my mind. I mean just...
Forum: XSLT October 22nd, 2007, 11:53 PM
Replies: 12
Views: 1,744
Posted By Pankaj C
Exactly!!! I am working on 1.0. By the way can...

Exactly!!! I am working on 1.0. By the way can you suggest me the best processor (which includes all new functionalities) for XSLT 2.0.
I can see that lots of new good features has been added to...
Forum: XSLT October 22nd, 2007, 09:51 AM
Replies: 12
Views: 1,744
Posted By Pankaj C
This one is done using <xsl:template...

This one is done using

<xsl:template match="publisherName | publisherLoc">
<xsl:element name="{local-name()}">
<xsl:attribute name="supp-info">
<xsl:value-of select="string(.)"/>...
Forum: XSLT October 22nd, 2007, 06:20 AM
Replies: 12
Views: 1,744
Posted By Pankaj C
Perfect!! That's the correct syntax I was looking...

Perfect!! That's the correct syntax I was looking for.

Thanks Sam for help.

Pankaj
Forum: XSLT October 22nd, 2007, 05:43 AM
Replies: 12
Views: 1,744
Posted By Pankaj C
Well converting string to attributes values was...

Well converting string to attributes values was not my concern here like you suggested and know how to do that. I was looking for the suggestions to do it another better way doing that.

Simply I...
Forum: XSLT October 22nd, 2007, 05:19 AM
Replies: 12
Views: 1,744
Posted By Pankaj C
Suppressing Data

Hi,

I've an xml where I need to suppress few text within few elements. This is basically for print purpose wherein this text info are not required to be printed.

<publisherName>Divine...
Forum: XSLT October 18th, 2007, 08:46 AM
Replies: 6
Views: 1,306
Posted By Pankaj C
Yeah I understand. I think I need look other way...

Yeah I understand. I think I need look other way to get this done for me.

Thanks anyway.

Pankaj
Forum: XSLT October 18th, 2007, 07:09 AM
Replies: 6
Views: 1,306
Posted By Pankaj C
I understand what u meant of using "for-each" and...

I understand what u meant of using "for-each" and "value-of"
But I do not have anything like

<media>
<pic url="par76965_0101.eps"/>
<pic url="par76965_puzzle.eps"/>
</media>

My xml input...
Forum: XSLT October 18th, 2007, 05:45 AM
Replies: 6
Views: 1,306
Posted By Pankaj C
Thanks Sam. Just diverting from what you are...

Thanks Sam. Just diverting from what you are suggesting, I've just gone thru the documents and found dtd declaration can be done with

<xsl:output method="xml" indent="no" media-type="text/xml"...
Forum: XSLT October 18th, 2007, 03:05 AM
Replies: 6
Views: 1,306
Posted By Pankaj C
Include DOCTYPE declaration

Hi all,
I am using the following code to include document type and entity declaration in the resulting XML.
<xsl:template match="/">
<xsl:text disable-output-escaping="no">
<![CDATA[<!DOCTYPE...
Showing results 1 to 25 of 55

 


All times are GMT -4. The time now is 01:47 PM.


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