Search found 89 matches

by jkmyoung
Thu Nov 08, 2007 9:43 pm
Forum: XSLT and FOP
Topic: XSLT Query
Replies: 3
Views: 3118

Need to see your xml, and what you want exactly, eg
select="employeeValue > 5000 and employeeValue < 10000"
by jkmyoung
Mon Nov 05, 2007 5:42 pm
Forum: XSLT and FOP
Topic: Fetching the data
Replies: 1
Views: 2245

Can you use xslt 2.0?

Also question about the format.
<f1> wo(sd,fg,hj) ep(ru,hu,fg) hg, jh </f1>

Are you missing a comma between "hj)" and "ep", or can it be like this?

Could you give another possible string it could be like?
by jkmyoung
Mon Nov 05, 2007 5:12 pm
Forum: XSLT and FOP
Topic: html tags is getting ignored
Replies: 5
Views: 5866

The problem is probably in the XSLT. You're probably using <xsl:value-of select="...."/> somewhere, which copies the text only. You'd have to use apply-templates where it is instead, so that the <i> template gets used instead. If you post the source xml that contains that italics, it'd be ...
by jkmyoung
Wed Oct 31, 2007 9:48 pm
Forum: General XML Questions
Topic: XSL/XPATH compose string and use it as a variable name
Replies: 3
Views: 5462

It may be possible to achieve what you're trying to do using a different method. Are your variables static, or obtained from fields in the source xml?
by jkmyoung
Tue Oct 30, 2007 10:01 pm
Forum: XSLT and FOP
Topic: date comparison
Replies: 2
Views: 2768

What format is your date in? How are you dividing the quarters?

Could you post your current code?
It's easier to adjust existing code than give you code that may or may not work with your current situation.
by jkmyoung
Wed Oct 17, 2007 1:41 am
Forum: XSLT and FOP
Topic: unknown issue with namespace
Replies: 4
Views: 3876

The processor you're using does not support msxml

change it to
xmlns:msxsl="http://www.oracle.com/XSL/Transform/java/"
by jkmyoung
Tue Oct 02, 2007 5:20 pm
Forum: XSLT and FOP
Topic: 1 + 1 (included) XML file … 2 XSL … 1 Ant buildfile
Replies: 4
Views: 4226

Could it be that the 2nd xml file is not being included when transforming?? You could try the following: (you'd have to declare the xi namespace in your xsl) <xsl:template match="xi:include"> <xsl:apply-templates select="document(@href)"/> </xsl:template> http://www.w3schools.com...
by jkmyoung
Tue Oct 02, 2007 5:11 pm
Forum: XSLT and FOP
Topic: XSL Value-of help
Replies: 3
Views: 3315

Is the <br/> always in the code?

<xsl:value-of select="substring-before(general/alert[id='12053']/desc, '<br'"/>
by jkmyoung
Mon Oct 01, 2007 6:15 pm
Forum: General XML Questions
Topic: Alternative learning sources
Replies: 1
Views: 3644

Not entirely sure what you're looking for, but have you ever checked out
http://www.csszengarden.com/

This shows how using 1 xml source, but changing the css can give your site many different looks.
by jkmyoung
Mon Oct 01, 2007 6:11 pm
Forum: General XML Questions
Topic: Filter RSS feed articles
Replies: 4
Views: 5615

You could actually use their own XSLT at http://community.kiwanisone.org/utility/FeedStylesheets/rss.xsl Just make modifications to add filters. You can also remove their header text if you want. Assuming there is only one channel, the line to change is here: <xsl:for-each select="rss/channel/i...
by jkmyoung
Fri Sep 28, 2007 10:39 pm
Forum: XSLT and FOP
Topic: 1 + 1 (included) XML file … 2 XSL … 1 Ant buildfile
Replies: 4
Views: 4226

Have you tried using <xsl:import> or <xsl:include> to include the other stylesheet? http://www.w3schools.com/xsl/el_include.asp If the 2 xml files are totally different, (they don't have any of the same elements), then you will probably be able to just include the 2nd stylesheet and have it work cor...
by jkmyoung
Fri Sep 28, 2007 10:33 pm
Forum: General XML Questions
Topic: Filter RSS feed articles
Replies: 4
Views: 5615

You could always copy just the nodes from the first 5 articles, using XSLT and xpath If you want date filtering, you'd need a node in the rss feed that specifies when each article has been published. If you could post part of the feed, or the link to it, it'd be easier to create a custom XSLT for you.
by jkmyoung
Fri Sep 21, 2007 4:56 pm
Forum: XSLT and FOP
Topic: XSLT help
Replies: 3
Views: 3332

Well if you did it this way, the 3rd field would be substring-before(substring-after(substring-after(payload ,','),',') ,',') which quickly gets ridiculous. I suggest a recursive approach instead. Global variable: <xsl:variable name="numFields" select="20"/> Inside template: <xsl...
by jkmyoung
Fri Sep 21, 2007 4:39 pm
Forum: XSLT and FOP
Topic: XSL Value-of help
Replies: 3
Views: 3315

<xsl:value-of select="substring-after(general/alert[id='12053']/desc, 'resolves as ')"/>

I don't think you're getting the <br/> from here. Check the rest of your code.
by jkmyoung
Thu Sep 20, 2007 10:49 pm
Forum: General XML Questions
Topic: Converting Pipe-Delimited txt to XML
Replies: 5
Views: 17796

Cursed no edit forum.

<xsl:variable name="var" select="tokenize('payload', ',')"/>
by jkmyoung
Thu Sep 20, 2007 10:49 pm
Forum: General XML Questions
Topic: Converting Pipe-Delimited txt to XML
Replies: 5
Views: 17796

<xsl:variable name="var" select="tokenize('payload', ',|')"/>
by jkmyoung
Thu Sep 20, 2007 10:47 pm
Forum: XSLT and FOP
Topic: XSLT help
Replies: 3
Views: 3332

If you're using XSLT 2.0, this can easily be done with the tokenize function. Otherwise you'll have to use functions substring-before() and substring-after() eg: <empname><xsl:value-of select="substring-before(payload,',')"/></empname> <empid><xsl:value-of select="substring-before(sub...
by jkmyoung
Mon Sep 10, 2007 5:41 pm
Forum: XSLT and FOP
Topic: filter nodes by looking in "multiple grandchilds"
Replies: 1
Views: 2348

I can't entirely see your code in the code box, but I'm assuming you need a nested conditional braces
Try this xpath:
//product[productLogisticInfo/data[.='Retail']]
by jkmyoung
Wed Sep 05, 2007 5:05 pm
Forum: XSLT and FOP
Topic: "Content not allowed in prolog"--what prolog???
Replies: 7
Views: 10175

This is a pretty common problem.
Some text editors or applications add a "Byte Order Mark" at the beginning of the xml file. eg: Windows Notepad.
One possible solution is to use a different encoding such as UTF-16 or iso-8859-1
by jkmyoung
Tue Aug 28, 2007 5:17 pm
Forum: XML Schemas
Topic: My first XSD... please help
Replies: 2
Views: 4431

You've already named your problem: case

Either change your schema to use lowercase or change your source to use upper case.
by jkmyoung
Tue Aug 21, 2007 6:43 pm
Forum: XML Schemas
Topic: cos-nonambig Error
Replies: 1
Views: 8957

The problem is that once the parser encounters the IdAplicacion group, it doesn't know which main group that this is a part of. Try instead: <xs:element name="parametros"> <xs:complexType> <xs:sequence> <xs:group ref="wsfirma:IdAplicacion"/> <xs:choice> <xs:group ref="wsfirm...
by jkmyoung
Mon Aug 13, 2007 10:10 pm
Forum: XML Schemas
Topic: Creating a new data type
Replies: 3
Views: 4968

If you're not using the standard date format, you could create a pattern based on an xs:string, eg <xs:simpleType> <xs:restriction base="xs:string"> <xs:pattern value="([0-9]{4}-[0-1][0-9]-[0-3][0-9] [0-2][0-9]:[0-5][0-9]:[0-5][0-9])|"/> </xs:restriction> </xs:simpleType> Can't r...
by jkmyoung
Mon Aug 13, 2007 10:06 pm
Forum: XML Schemas
Topic: Creating a Schema With two occurrences of the same componen
Replies: 2
Views: 8751

Technically this is an Oxygen forum, not an XMLSpy one. But anyways:
Try removing the spaces from all the element name declarations. XMLSpy is picky about this.
by jkmyoung
Fri Aug 10, 2007 12:43 am
Forum: XSLT and FOP
Topic: problem creating XML using XSLT
Replies: 1
Views: 4673

To get rid of spaces, I'd recommend something like: <xsl:template match ="object"> <xsl:element name="{translate(@type,' ', '')}"> <xsl:apply-templates select = "property" /> <xsl:apply-templates select = "object" /> </xsl:element> </xsl:template> However, one...
by jkmyoung
Wed Aug 08, 2007 4:55 pm
Forum: XSLT and FOP
Topic: function node-set bound to undefined prefix exslt
Replies: 4
Views: 5342

you need to define the namespace exslt in your stylesheet node

xmlns:exslt="http://exslt.org/common"
by jkmyoung
Wed Aug 08, 2007 1:12 am
Forum: XSLT and FOP
Topic: XSLT Newbie - XSL:If Question
Replies: 2
Views: 3101

<xsl:apply-templates select="//*[name()='LineItem']/*[ contain ('Sale,Return,Discount,Tender',name()) ]" /> becomes <xsl:apply-templates selct="//LineItem/*[ contain ('Sale,Return,Discount,Tender',name()) ]"/> To take into account VoidFlag="true" <xsl:apply-templates se...
by jkmyoung
Fri Jul 27, 2007 6:55 pm
Forum: XSLT and FOP
Topic: <xsl:when test="$pages[parent_id = $current_page/id]
Replies: 1
Views: 2931

<xsl:when test="$pages[parent_id = $current_page/id]">

Test if the value of the parent_id node in the variable $pages is equal to the id variable in the page node.

In English, you are testing if the current page ($pages) is a child of the current page.
by jkmyoung
Wed Jul 18, 2007 8:27 pm
Forum: General XML Questions
Topic: xml cleaning and attribute removing
Replies: 5
Views: 6710

Simply create a filter on your Placemark template to only copy the information you need:
<xsl:template match="Placemark">
<xsl:copy>
<xsl:copy-of select="name|LookAt/coordinates|address"/>
</xsl:copy>
</xsl:template>
by jkmyoung
Mon Jul 16, 2007 6:42 pm
Forum: XSLT and FOP
Topic: How to create a list of nodes?
Replies: 3
Views: 3255

Assuming all match:
<xsl:for-each select="$data_doc//Array/@Code">
<xsl:value-of select="."/><xsl:text> </xsl:text>
</xsl:for-each>
by jkmyoung
Mon Jul 16, 2007 6:41 pm
Forum: XSLT and FOP
Topic: How to create a list of nodes?
Replies: 3
Views: 3255

Can you use XSLT 2.0? If so you can use the matches() function
eg.
matches(., "X[1-9]+Y[1-9]+")