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 36
Search took 0.01 seconds.
Search: Posts Made By: EstherMStrom
Forum: XSLT May 18th, 2005, 03:59 PM
Replies: 1
Views: 1,005
Posted By EstherMStrom
Passing nodeset into position() function

I know this is a silly question, but I can't seem to get it.

I need to find the position of an element's ancestor element, in relation to the other elements at the ancestor's level.

Example:
...
Forum: XSLT February 25th, 2005, 09:33 PM
Replies: 3
Views: 1,358
Posted By EstherMStrom
Adding new lines was what I was trying to do with...

Adding new lines was what I was trying to do with any of these:

<xsl:text>#xA;</xsl:text>, <xsl:text>#&13;</xsl:text> and <xsl:text>#x0D;</xsl:text>

I had put them after the closing </element>...
Forum: XSLT February 25th, 2005, 05:44 PM
Replies: 1
Views: 2,253
Posted By EstherMStrom
I don't have an answer to your second question,...

I don't have an answer to your second question, but as to the first: you won't see MSXSL in your Start menu - it's a command line program. Assuming you have it installed correctly, open a command...
Forum: XSLT February 25th, 2005, 05:38 PM
Replies: 3
Views: 1,358
Posted By EstherMStrom
xsl:element not on its own line in output

I'm doing an xml to xml transformation. For some reason, certain elements that I create are not being placed on their own line in the output.

Here's a piece of the stylesheet - the template of...
Forum: XSLT February 14th, 2005, 05:47 PM
Replies: 3
Views: 1,822
Posted By EstherMStrom
Thank you both. I had actually gotten as far as ...

Thank you both. I had actually gotten as far as

<xsl:if test="descendant::Item[descendant::Answer]">

after I posted, but couldn't figure out how to work in the attribute value. Things...
Forum: XSLT February 14th, 2005, 05:05 PM
Replies: 3
Views: 1,822
Posted By EstherMStrom
syntax of xsl:if statement

I have a fairly simple setup here (I've stripped out a few levels for clarity).

<Activity>
<Item>Item Text
<Answer>Answer Text</Answer>
</Item>

<Item>Item Text
</Item>
Forum: XSLT February 9th, 2005, 06:53 PM
Replies: 1
Views: 1,115
Posted By EstherMStrom
Syntax help with string-length and XPath

I don't know if this is possible, but here's what I need to do:

Find the ancestor element named PEDiv whose ID attribute is only 2 digits and begins with the letter 'a'.

What would the syntax...
Forum: XSLT January 26th, 2005, 11:15 AM
Replies: 5
Views: 997
Posted By EstherMStrom
Thanks for all the posts. I downloaded the Altova...

Thanks for all the posts. I downloaded the Altova trial, and even though it doesn't have the feature I was looking for, it's a really cool environment and I may continue to use it. I'll take a look...
Forum: XSLT January 25th, 2005, 05:26 PM
Replies: 5
Views: 997
Posted By EstherMStrom
Development environment recommedations

I don't know if something like this even exists... I'm really new to the whole XSL/XPath thing. What I would find really helpful is a GUI program that would display my XML document and let me click...
Forum: XSLT January 25th, 2005, 04:44 PM
Replies: 1
Views: 760
Posted By EstherMStrom
It would help to see the XSL you're using to...

It would help to see the XSL you're using to output to HTML, since most likely that's where the problem is...
Forum: XSLT January 21st, 2005, 03:21 PM
Replies: 0
Views: 723
Posted By EstherMStrom
Numbering problem

I have what I think may be a strange numbering issue.

Here's the basic setup of the XML source:

<NavigationDivision PEDivRef="a1">
<NavigationDivision PEDivRef="b1">
<NavigationDivision...
Forum: XSLT January 19th, 2005, 02:32 PM
Replies: 5
Views: 1,781
Posted By EstherMStrom
Nope, id('c3') doesn't return anything. I'm not...

Nope, id('c3') doesn't return anything. I'm not the DTD developer, but I've looked at the file(s), and the params in question are definitely declared as ID and IDREF.

<!ELEMENT PEDiv...
Forum: XSLT January 19th, 2005, 02:16 PM
Replies: 5
Views: 1,781
Posted By EstherMStrom
Well, I ended up getting it to work by doing...

Well, I ended up getting it to work by doing this:

<xsl:value-of select="//PEDiv[@id = $navDivID]/PETOCEntry/Title" />

I'm pretty new to XSL, so maybe I'm not understanding the correct use of...
Forum: XSLT January 19th, 2005, 02:00 PM
Replies: 5
Views: 1,781
Posted By EstherMStrom
Thanks for the shortcut. I rewrote the variable,...

Thanks for the shortcut. I rewrote the variable, but I'm still getting nothing, even when I hard-code the value the variable returns into the id() function:

<xsl:value-of...
Forum: XSLT January 19th, 2005, 01:11 PM
Replies: 5
Views: 1,781
Posted By EstherMStrom
Passing a variable into the id() function

<xsl:variable name="navDivID">
<xsl:value-of select="ancestor::NavigationDivision[1]/@PEDivRef" />
</xsl:variable>

<xsl:value-of select="$navDivID" />

This works so far - it pulls in the...
Forum: XSLT December 13th, 2004, 01:04 PM
Replies: 3
Views: 969
Posted By EstherMStrom
Thanks.

Thanks.
Forum: XSLT December 13th, 2004, 12:14 PM
Replies: 3
Views: 969
Posted By EstherMStrom
Stripping specific tags from input XML

My stylesheet is running through some XML that contains tags like this:

<title>This is <b>My</b> Title, from <i>The History of Eric</i></title>

What I need to return is this:

<header>
This...
Forum: XSLT December 10th, 2004, 04:38 PM
Replies: 5
Views: 1,212
Posted By EstherMStrom
DOH! Just remembered that I resaved the xsl under...

DOH! Just remembered that I resaved the xsl under a different name when I made some changes, but was still running the transform with the old file name. Added the template match="*", ran the...
Forum: XSLT December 10th, 2004, 04:37 PM
Replies: 5
Views: 1,212
Posted By EstherMStrom
Nope, still gives the mess.

Nope, still gives the mess.
Forum: XSLT December 10th, 2004, 03:31 PM
Replies: 5
Views: 1,212
Posted By EstherMStrom
No apply-templates anywhere. How could the...

No apply-templates anywhere. How could the namespace of the root element be different? The only namespace defined anywhere is in the xsl stylesheet tag. Here's the entire stylesheet:

<?xml...
Forum: XSLT December 10th, 2004, 03:05 PM
Replies: 5
Views: 1,212
Posted By EstherMStrom
Beginner question on getting only certain elements

I have some XML that looks like this:

<ProgramMeta>
<Title CrossAlign="No">Ancient Civilizations</Title>
<PETOC>
<PEMeta>
<LabelInfo>...
Forum: XSLT October 13th, 2004, 09:50 AM
Replies: 6
Views: 1,359
Posted By EstherMStrom
Thanks again for all your help. Unfortunately...

Thanks again for all your help. Unfortunately your suggested stylesheet won't work for me; the code I provided was an extremely simplified version of what I need to deal with. There are actually 15...
Forum: XSLT October 12th, 2004, 12:17 PM
Replies: 6
Views: 1,359
Posted By EstherMStrom
Phil, I hope you're still following this; I've...

Phil, I hope you're still following this; I've been on another project this last week and only just now had a chance to try out your code.

So, it does work, sort of. The problem is, if I use...
Forum: XSLT October 7th, 2004, 09:44 AM
Replies: 6
Views: 1,359
Posted By EstherMStrom
I'm sorry, either you're misunderstanding or I...

I'm sorry, either you're misunderstanding or I am. You say, "if the question is Null, display as null." The whole point is, I don't know if the question is null. The problem is, there are more...
Forum: XSLT October 2nd, 2004, 11:40 AM
Replies: 3
Views: 664
Posted By EstherMStrom
I'm using this one:...

I'm using this one: http://www.cranesoftwrights.com/resources/showtree/showtree-20000610.xsl

described as, "The stylesheet for the current W3C XSLT/XPath 1.0 Recommendations can be obtained from:...
Showing results 1 to 25 of 36

 


All times are GMT -4. The time now is 02:00 AM.


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