Quantcast
Channel: Adobe Community : Popular Discussions - FrameMaker Structured
Viewing all articles
Browse latest Browse all 66580

problems importing XHTML

$
0
0

I followed the instructions in this video to import an XHTML file generated by RoboHelp:

 

http://tv.adobe.com/watch/adobe-evangelist-technical-communication/bring-indesign-content- into-framemaker-10

 

First I had to switch to structured mode, unstructured FrameMaker doesn't know what to do with the file.

 

When I open it in structured mode, I get the error "Validation of XML file failed. Continue?"

 

XML Read Report Log ...

XML Parser Messages (Document Instance)

Error at file ...

line 75, char 78, Message: Attribute 'title' is not declared for element 'script'

Error at line 83, char 82, Message: Attribute 'title' is not declared for element 'script'

 

The import completes, but a bunch of code (see below) gets pulled in without being interpreted. Is there some way to suppress that? I could post-process the files but this seems like something FrameMaker ought to be able to handle.

 

/**/ body { background-color: #ffffff; } A:visited { color: #006699; } A:active { color: #FFCC00; } A:link { color: #006699; } /**/

/**/ table.whs1 { width: 500px; } tr.whs2 { vertical-align: top; text-align: left; } th.whs3 { vertical-align: top; text-align: left; width: 30%; padding-left: 1px; padding-top: 1px; padding-right: 1px; padding-bottom: 1px; } th.whs4 { width: 70%; padding-left: 1px; padding-top: 1px; padding-right: 1px; padding-bottom: 1px; } td.whs5 { padding-left: 1px; padding-top: 1px; padding-right: 1px; padding-bottom: 1px; } /**/

/**/ div.WebHelpPopupMenu { position: absolute; left: 0px; top: 0px; z-index: 4; visibility: hidden; } /**/

// <!-- if (navigator.appName !="Netscape") { document.write("<link rel='stylesheet' href='SentrionStyle.css'>");} //--> //

// <!-- function reDo() { if (innerWidth != origWidth || innerHeight != origHeight) location.reload(); } if ((parseInt(navigator.appVersion) == 4) && (navigator.appName == "Netscape")) { origWidth = innerWidth; origHeight = innerHeight; onresize = reDo; } onerror = null; //--> //

 

Here's what that looks like in the XHTML file:

 

<style type="text/css">

/*<![CDATA[*/

body {

        background-color: #ffffff;

}

A:visited {

        color: #006699;

}

A:active {

        color: #FFCC00;

}

A:link {

        color: #006699;

}

/*]]>*/

</style>

 

<style type="text/css">

/*<![CDATA[*/

table.whs1 {

        width: 500px;

}

tr.whs2 {

        vertical-align: top;

        text-align: left;

}

th.whs3 {

        vertical-align: top;

        text-align: left;

        width: 30%;

        padding-left: 1px;

        padding-top: 1px;

        padding-right: 1px;

        padding-bottom: 1px;

}

th.whs4 {

        width: 70%;

        padding-left: 1px;

        padding-top: 1px;

        padding-right: 1px;

        padding-bottom: 1px;

}

td.whs5 {

        padding-left: 1px;

        padding-top: 1px;

        padding-right: 1px;

        padding-bottom: 1px;

}

/*]]>*/

</style>

 

<style type="text/css">

/*<![CDATA[*/

div.WebHelpPopupMenu {

        position: absolute;

        left: 0px;

        top: 0px;

        z-index: 4;

        visibility: hidden;

}

/*]]>*/

</style>

 

<script type="text/javascript" language="JavaScript" title="WebHelpSplitCss">

//<![CDATA[

<!--

if (navigator.appName !="Netscape")

{   document.write("<link rel='stylesheet' href='SentrionStyle.css'>");}

//-->

//]]>

</script>

<script type="text/javascript" language="JavaScript" title="WebHelpInlineScript">

//<![CDATA[

<!--

function reDo() {

  if (innerWidth != origWidth || innerHeight != origHeight)

     location.reload();

}

if ((parseInt(navigator.appVersion) == 4) && (navigator.appName == "Netscape")) {

        origWidth = innerWidth;

        origHeight = innerHeight;

        onresize = reDo;

}

onerror = null;

//-->

//]]>

</script>


Viewing all articles
Browse latest Browse all 66580

Trending Articles