|
View:
New views
10 Messages
—
Rating Filter:
Alert me
|
|
|
|
|
|
Re: Fwd: Having trouble converting to xsl 2.0You need to show us your root matching template, or which template
outputs the outermost element... The error message is suggesting you are outputting text before the root element, which isn't allowed when you specify a doctype. 2008/8/14 Aristotle Allen <aristotle.allen@...>: > Sorry if this is a duplicate post, not sure if the first one was approved. > > Also I'm wondering is the xml decleration in the xsl or xml causing a > problem? I thought this was ignored for well-formedness checks, > otherwise I can't understand what the problem is. > > - > > Ari > > > I've switched over to saxon 9.1B, and every transform I try to run > generates the following error. > > Error > SEPM0004: When 'standalone' or 'doctype-system' is specified, the > document must be > well-formed; but this document contains a top-level text node > > I'm using the following doctype declarations > > <xsl:output method="html" media-type="text/html" > doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" > doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > cdata-section-elements="script style" indent="yes" > encoding="ISO-8859-1"/> > > > Any idea what I may be doing wrong? > -- > - > Aristotle B. Allen > > > > -- > - > Aristotle B. Allen > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > saxon-help mailing list archived at http://saxon.markmail.org/ > saxon-help@... > https://lists.sourceforge.net/lists/listinfo/saxon-help > -- Andrew Welch http://andrewjwelch.com Kernow: http://kernowforsaxon.sf.net/ ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ saxon-help mailing list archived at http://saxon.markmail.org/ saxon-help@... https://lists.sourceforge.net/lists/listinfo/saxon-help |
|
|
Re: Fwd: Having trouble converting to xsl 2.0Here is the top of my transform
I've noticed some of the imports have <xsl:template match="*"... This is kicking out xml when the import happens right? It is not waiting for a call-template. I think I need to talk to the guy who wrote the xsl... am I right about the match="*"? <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns="http://www.w3.org/1999/xhtml" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:web="http://webclient.rse.synchronoss.com/xsd/WebClient_v1.xsd" xmlns:wx="http://www.synchronoss.com/BeanstoXml/WebXml.xsd"> <xsl:output method="html" media-type="text/html" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" cdata-section-elements="script style" indent="yes" encoding="ISO-8859-1"/> <xsl:include href="common_templates.xsl"/> <xsl:include href="states.xsl"/> <xsl:include href="common_order.xsl"/> <xsl:template match="/"> On Thu, Aug 14, 2008 at 10:44 AM, Andrew Welch <andrew.j.welch@...> wrote: > You need to show us your root matching template, or which template > outputs the outermost element... The error message is suggesting you > are outputting text before the root element, which isn't allowed when > you specify a doctype. > > 2008/8/14 Aristotle Allen <aristotle.allen@...>: >> Sorry if this is a duplicate post, not sure if the first one was approved. >> >> Also I'm wondering is the xml decleration in the xsl or xml causing a >> problem? I thought this was ignored for well-formedness checks, >> otherwise I can't understand what the problem is. >> >> - >> >> Ari >> >> >> I've switched over to saxon 9.1B, and every transform I try to run >> generates the following error. >> >> Error >> SEPM0004: When 'standalone' or 'doctype-system' is specified, the >> document must be >> well-formed; but this document contains a top-level text node >> >> I'm using the following doctype declarations >> >> <xsl:output method="html" media-type="text/html" >> doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" >> doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >> cdata-section-elements="script style" indent="yes" >> encoding="ISO-8859-1"/> >> >> >> Any idea what I may be doing wrong? >> -- >> - >> Aristotle B. Allen >> >> >> >> -- >> - >> Aristotle B. Allen >> >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge >> Build the coolest Linux based applications with Moblin SDK & win great prizes >> Grand prize is a trip for two to an Open Source event anywhere in the world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> saxon-help mailing list archived at http://saxon.markmail.org/ >> saxon-help@... >> https://lists.sourceforge.net/lists/listinfo/saxon-help >> > > > > -- > Andrew Welch > http://andrewjwelch.com > Kernow: http://kernowforsaxon.sf.net/ > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > saxon-help mailing list archived at http://saxon.markmail.org/ > saxon-help@... > https://lists.sourceforge.net/lists/listinfo/saxon-help > -- - Aristotle B. Allen ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ saxon-help mailing list archived at http://saxon.markmail.org/ saxon-help@... https://lists.sourceforge.net/lists/listinfo/saxon-help |
|
|
Re: Fwd: Having trouble converting to xsl 2.02008/8/14 Aristotle Allen <aristotle.allen@...>:
> Here is the top of my transform > > I've noticed some of the imports have <xsl:template match="*"... > > This is kicking out xml when the import happens right? It is not > waiting for a call-template. I think I need to talk to the guy who > wrote the xsl... am I right about the match="*"? No it's not waiting for a call-template...! :) The part you need to show us is the first few lines under <xsl:template match="/">... -- Andrew Welch http://andrewjwelch.com Kernow: http://kernowforsaxon.sf.net/ ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ saxon-help mailing list archived at http://saxon.markmail.org/ saxon-help@... https://lists.sourceforge.net/lists/listinfo/saxon-help |
|
|
Re: Fwd: Having trouble converting to xsl 2.0here is my first template, any red flags?
<xsl:template match="/"> <html> <head> <script type="text/javascript" language="JavaScript" src="/csr/javascript/csrordview.js"/> <xsl:call-template name="html-head"/> </head> <body id="page_"> <div id="wrapper"> <xsl:call-template name="wapper_menu"/> <div id="container"> <div id="page"> <xsl:call-template name="header"/> <xsl:call-template name="loggedin_menu"> <xsl:with-param name="pn" select="$PN_ORDERS"/> </xsl:call-template> <div id="content"> <xsl:call-template name="content"/> <br/> </div> </div> </div> <xsl:call-template name="footer"/> </div> </body> </html> <head> <xsl:call-template name="no-cache"/> </head> </xsl:template> On Thu, Aug 14, 2008 at 11:29 AM, Andrew Welch <andrew.j.welch@...> wrote: > 2008/8/14 Aristotle Allen <aristotle.allen@...>: >> Here is the top of my transform >> >> I've noticed some of the imports have <xsl:template match="*"... >> >> This is kicking out xml when the import happens right? It is not >> waiting for a call-template. I think I need to talk to the guy who >> wrote the xsl... am I right about the match="*"? > > No it's not waiting for a call-template...! :) > > The part you need to show us is the first few lines under > <xsl:template match="/">... > > > -- > Andrew Welch > http://andrewjwelch.com > Kernow: http://kernowforsaxon.sf.net/ > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > saxon-help mailing list archived at http://saxon.markmail.org/ > saxon-help@... > https://lists.sourceforge.net/lists/listinfo/saxon-help > -- - Aristotle B. Allen ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ saxon-help mailing list archived at http://saxon.markmail.org/ saxon-help@... https://lists.sourceforge.net/lists/listinfo/saxon-help |
|
|
Re: Fwd: Having trouble converting to xsl 2.0hrm... a second head tag at the end of the template... suspect?
On Thu, Aug 14, 2008 at 2:15 PM, Aristotle Allen <aristotle.allen@...> wrote: > here is my first template, any red flags? > > <xsl:template match="/"> > <html> > <head> > <script type="text/javascript" language="JavaScript" > src="/csr/javascript/csrordview.js"/> > <xsl:call-template name="html-head"/> > </head> > <body id="page_"> > <div id="wrapper"> > <xsl:call-template name="wapper_menu"/> > <div id="container"> > <div id="page"> > <xsl:call-template name="header"/> > <xsl:call-template name="loggedin_menu"> > <xsl:with-param name="pn" select="$PN_ORDERS"/> > </xsl:call-template> > > <div id="content"> > <xsl:call-template name="content"/> > <br/> > > </div> > </div> > </div> > <xsl:call-template name="footer"/> > </div> > > </body> > </html> > <head> > <xsl:call-template name="no-cache"/> > </head> > </xsl:template> > > > > > On Thu, Aug 14, 2008 at 11:29 AM, Andrew Welch <andrew.j.welch@...> wrote: >> 2008/8/14 Aristotle Allen <aristotle.allen@...>: >>> Here is the top of my transform >>> >>> I've noticed some of the imports have <xsl:template match="*"... >>> >>> This is kicking out xml when the import happens right? It is not >>> waiting for a call-template. I think I need to talk to the guy who >>> wrote the xsl... am I right about the match="*"? >> >> No it's not waiting for a call-template...! :) >> >> The part you need to show us is the first few lines under >> <xsl:template match="/">... >> >> >> -- >> Andrew Welch >> http://andrewjwelch.com >> Kernow: http://kernowforsaxon.sf.net/ >> >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge >> Build the coolest Linux based applications with Moblin SDK & win great prizes >> Grand prize is a trip for two to an Open Source event anywhere in the world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> saxon-help mailing list archived at http://saxon.markmail.org/ >> saxon-help@... >> https://lists.sourceforge.net/lists/listinfo/saxon-help >> > > > > -- > - > Aristotle B. Allen > -- - Aristotle B. Allen ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ saxon-help mailing list archived at http://saxon.markmail.org/ saxon-help@... https://lists.sourceforge.net/lists/listinfo/saxon-help |
|
|
Re: Fwd: Having trouble converting to xsl 2.0You are outputting an <html> element followed by a <head> element. This
would produce a document with two root elements if it succeeded. But that isn't valid. PC2 -----Original Message----- From: saxon-help-bounces@... [mailto:saxon-help-bounces@...] On Behalf Of Aristotle Allen Sent: August 14, 2008 11:15 To: Mailing list for the SAXON XSLT and XQuery processor Subject: Re: [saxon] Fwd: Having trouble converting to xsl 2.0 here is my first template, any red flags? <xsl:template match="/"> <html> <head> <script type="text/javascript" language="JavaScript" src="/csr/javascript/csrordview.js"/> <xsl:call-template name="html-head"/> </head> <body id="page_"> <div id="wrapper"> <xsl:call-template name="wapper_menu"/> <div id="container"> <div id="page"> <xsl:call-template name="header"/> <xsl:call-template name="loggedin_menu"> <xsl:with-param name="pn" select="$PN_ORDERS"/> </xsl:call-template> <div id="content"> <xsl:call-template name="content"/> <br/> </div> </div> </div> <xsl:call-template name="footer"/> </div> </body> </html> <head> <xsl:call-template name="no-cache"/> </head> </xsl:template> ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ saxon-help mailing list archived at http://saxon.markmail.org/ saxon-help@... https://lists.sourceforge.net/lists/listinfo/saxon-help |
|
|
Re: Fwd: Having trouble converting to xsl 2.0yeah... thanks. I think that was it.
On Thu, Aug 14, 2008 at 2:18 PM, Clapham, Paul <pclapham@...> wrote: > You are outputting an <html> element followed by a <head> element. This > would produce a document with two root elements if it succeeded. But > that isn't valid. > > PC2 > > -----Original Message----- > From: saxon-help-bounces@... > [mailto:saxon-help-bounces@...] On Behalf Of Aristotle > Allen > Sent: August 14, 2008 11:15 > To: Mailing list for the SAXON XSLT and XQuery processor > Subject: Re: [saxon] Fwd: Having trouble converting to xsl 2.0 > > here is my first template, any red flags? > > <xsl:template match="/"> > <html> > <head> > <script type="text/javascript" language="JavaScript" > src="/csr/javascript/csrordview.js"/> > <xsl:call-template name="html-head"/> > </head> > <body id="page_"> > <div id="wrapper"> > <xsl:call-template name="wapper_menu"/> > <div id="container"> > <div id="page"> > <xsl:call-template name="header"/> > <xsl:call-template name="loggedin_menu"> > <xsl:with-param name="pn" > select="$PN_ORDERS"/> > </xsl:call-template> > > <div id="content"> > <xsl:call-template name="content"/> > <br/> > > </div> > </div> > </div> > <xsl:call-template name="footer"/> > </div> > > </body> > </html> > <head> > <xsl:call-template name="no-cache"/> > </head> > </xsl:template> > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > saxon-help mailing list archived at http://saxon.markmail.org/ > saxon-help@... > https://lists.sourceforge.net/lists/listinfo/saxon-help > -- - Aristotle B. Allen ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ saxon-help mailing list archived at http://saxon.markmail.org/ saxon-help@... https://lists.sourceforge.net/lists/listinfo/saxon-help |
|
|
Re: Fwd: Having trouble converting to xsl 2.0You are trying to output a document fragment that contains a top-level text
node, for example text<a/>text This is OK in general; but such a document cannot have a DOCTYPE declaration so it is inconsistent with your requested xsl:output parameters. Michael Kay Saxonica > -----Original Message----- > From: saxon-help-bounces@... > [mailto:saxon-help-bounces@...] On Behalf > Of Aristotle Allen > Sent: 14 August 2008 15:31 > To: saxon-help@... > Subject: [saxon] Fwd: Having trouble converting to xsl 2.0 > > Sorry if this is a duplicate post, not sure if the first one > was approved. > > Also I'm wondering is the xml decleration in the xsl or xml > causing a problem? I thought this was ignored for > well-formedness checks, otherwise I can't understand what the > problem is. > > - > > Ari > > > I've switched over to saxon 9.1B, and every transform I try > to run generates the following error. > > Error > SEPM0004: When 'standalone' or 'doctype-system' is > specified, the document must be well-formed; but this > document contains a top-level text node > > I'm using the following doctype declarations > > <xsl:output method="html" media-type="text/html" > doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" > > doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transit > cdata-section-elements="script style" indent="yes" > encoding="ISO-8859-1"/> > > > Any idea what I may be doing wrong? > -- > - > Aristotle B. Allen > > > > -- > - > Aristotle B. Allen > > -------------------------------------------------------------- > ----------- > This SF.Net email is sponsored by the Moblin Your Move > Developer's challenge Build the coolest Linux based > applications with Moblin SDK & win great prizes Grand prize > is a trip for two to an Open Source event anywhere in the > world http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > saxon-help mailing list archived at > http://saxon.markmail.org/ saxon-help@... > https://lists.sourceforge.net/lists/listinfo/saxon-help ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ saxon-help mailing list archived at http://saxon.markmail.org/ saxon-help@... https://lists.sourceforge.net/lists/listinfo/saxon-help |
|
|
Re: Fwd: Having trouble converting to xsl 2.0Thanks for clarifying.
Apparently the <head> at the end is there due to a bug in ie... and the doctype is there to get the next version of ie(not out yet) to run in some sort of compliance/standards mode... look like I'm going to have to com up with a comprimise, but at least I know where the problem now is. Thanks a bunch guys. On Thu, Aug 14, 2008 at 5:08 PM, Michael Kay <mike@...> wrote: > You are trying to output a document fragment that contains a top-level text > node, for example > > text<a/>text > > This is OK in general; but such a document cannot have a DOCTYPE declaration > so it is inconsistent with your requested xsl:output parameters. > > Michael Kay > Saxonica > >> -----Original Message----- >> From: saxon-help-bounces@... >> [mailto:saxon-help-bounces@...] On Behalf >> Of Aristotle Allen >> Sent: 14 August 2008 15:31 >> To: saxon-help@... >> Subject: [saxon] Fwd: Having trouble converting to xsl 2.0 >> >> Sorry if this is a duplicate post, not sure if the first one >> was approved. >> >> Also I'm wondering is the xml decleration in the xsl or xml >> causing a problem? I thought this was ignored for >> well-formedness checks, otherwise I can't understand what the >> problem is. >> >> - >> >> Ari >> >> >> I've switched over to saxon 9.1B, and every transform I try >> to run generates the following error. >> >> Error >> SEPM0004: When 'standalone' or 'doctype-system' is >> specified, the document must be well-formed; but this >> document contains a top-level text node >> >> I'm using the following doctype declarations >> >> <xsl:output method="html" media-type="text/html" >> doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" >> >> doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transit > ional.dtd" >> cdata-section-elements="script style" indent="yes" >> encoding="ISO-8859-1"/> >> >> >> Any idea what I may be doing wrong? >> -- >> - >> Aristotle B. Allen >> >> >> >> -- >> - >> Aristotle B. Allen >> >> -------------------------------------------------------------- >> ----------- >> This SF.Net email is sponsored by the Moblin Your Move >> Developer's challenge Build the coolest Linux based >> applications with Moblin SDK & win great prizes Grand prize >> is a trip for two to an Open Source event anywhere in the >> world http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> saxon-help mailing list archived at >> http://saxon.markmail.org/ saxon-help@... >> https://lists.sourceforge.net/lists/listinfo/saxon-help > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > saxon-help mailing list archived at http://saxon.markmail.org/ > saxon-help@... > https://lists.sourceforge.net/lists/listinfo/saxon-help > -- - Aristotle B. Allen ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ saxon-help mailing list archived at http://saxon.markmail.org/ saxon-help@... https://lists.sourceforge.net/lists/listinfo/saxon-help |
| Free Forum Powered by Nabble | Forum Help |