XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
asdf asdfSubject: Help (html in xml) need to output
Author: asdf asdf
Date: 05 Nov 2006 01:30 AM
Hi all,

i have a file like this one and i need to output it using fo. I need to apply templates to the descr bit and then to the <h3> element.


<descr> &lt;h3&gt;Assessment Categories for &lt;/h3&gt; </descr>


Can anyone tell me how to do this, at the moment the text node is just output to the pdf as is.

any ideas

Postnext
Tony LavinioSubject: Help (html in xml) need to output
Author: Tony Lavinio
Date: 06 Nov 2006 09:22 AM
Please post in only one forum.
See http://www.stylusstudio.com/SSDN/default.asp?action=9&read=5754&fid=48

Postnext
Ivan PedruzziSubject: Help (html in xml) need to output
Author: Ivan Pedruzzi
Date: 06 Nov 2006 09:24 AM

What you have inside the "descr" element is not mark-up but text, no apply-template can match it.

You will need match "descr" then use sub-string in order to get "Assessment Categories for"

Hope this helps
Ivan Pedruzzi
Stylus Studio Team

Postnext
asdf asdfSubject: Help (html in xml) need to output
Author: asdf asdf
Date: 06 Nov 2006 11:56 PM
isn't there some sort of node set extension functionality or a parser that can be used, I have been reading about them but cannot seem to get the definitive answer....

i know by adding namespaces it is possible to use extensions ie exslt.org etc

anyone got anyideas

Postnext
Tony LavinioSubject: Help (html in xml) need to output
Author: Tony Lavinio
Date: 07 Nov 2006 10:02 AM
If you are using Saxon 8.x, there is the saxon:parse extension function.
It is not portable.
See http://www.saxonica.com/documentation/extensions/functions/parse.html

Postnext
asdf asdfSubject: Help (html in xml) need to output
Author: asdf asdf
Date: 08 Nov 2006 03:39 AM
now surely there is a solution to this

anyone got any links to processing html that is embedded in xml when needing to output to xsl-fo

Postnext
Tony LavinioSubject: Help (html in xml) need to output
Author: Tony Lavinio
Date: 08 Nov 2006 09:24 AM
Ivan's reply was correct; once you escape it the content is no
longer XML but text. XSLT processors are ill-equipped to deal
with that, since they depend on the previous step, the XML
parser, to deal with it. They really only 'see' the parsed
XML, broken into elements and attributes and text and such.

If you want to see what attempts others have made, with varying
degrees of success/failure, try this query on Google:

parsing escaped xml site:stylusstudio.com inurl:xsllist

This will search the XSL-List archives.

Posttop
asdf asdfSubject: Help (html in xml) need to output
Author: asdf asdf
Date: 09 Nov 2006 03:36 AM
thats alright peps, i solved it and what i solved was way more complex than that, its funny how most people say it cannot be done....

The job that i am currently doing is as a lead developer for a government department, before i started they said that the project couldn't be done, so they brought me in (a mathematician) to solve the problem

What I have learnt from all of this...is that people who know how to do stuff are not in this forum, they are out partying: content with the knowledge that they can do it, it is only people who do not know how to do it that hang out here....exceptions to the stylus team

I am not trying to be rude, but most of the posts point you in the wrong direction...flame war!

Peace out...

 
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.