XML con CSS

20/02/2004 - 12:59 por Alejandro Esteve | Informe spam
hola...
tengo un fichero xml con su xsl asociado y quisiera incluirle la hoja CSS
¿cómo se hace en xml?

Alejandro Esteve
http://www.BibliotecaInformatica.Net
ftp://ftp.BibliotecaInformatica.Net

Preguntas similare

Leer las respuestas

#1 Skar
20/02/2004 - 21:53 | Informe spam
dos formas:
directamente en el documento xml, antes de el nodo root (raiz) aniades
<?xml-stylesheet type="text/css" href="nombredecss.css"?>
luego lo abres en tu navegador (ie o netscape) y listo

Segunda forma: en tu XSL (supongo que genera HTML) simplemente le aniades
<LINK REL=STYLESHEET TYPE="text/css" HREF="nombredecss.css">
a la <xsl:template que contine la seccion Header de tu HTML
Para mas info en Access visitame
http://www22.brinkster.com/equisbert/
"Alejandro Esteve" wrote in message
news:
hola...
tengo un fichero xml con su xsl asociado y quisiera incluirle la hoja CSS
¿cómo se hace en xml?

Alejandro Esteve
http://www.BibliotecaInformatica.Net
ftp://ftp.BibliotecaInformatica.Net


Respuesta Responder a este mensaje
#2 Alejandro Esteve
23/02/2004 - 21:32 | Informe spam
gracias Skar

¿conoces algún enlace que trate sobre el tema CSS/XSML/XSL?

Alejandro Esteve
http://www.BibliotecaInformatica.Net
ftp://ftp.BibliotecaInformatica.Net

"Skar" wrote in message
news:#U90nO$
dos formas:
directamente en el documento xml, antes de el nodo root (raiz) aniades
<?xml-stylesheet type="text/css" href="nombredecss.css"?>
luego lo abres en tu navegador (ie o netscape) y listo

Segunda forma: en tu XSL (supongo que genera HTML) simplemente le aniades
<LINK REL=STYLESHEET TYPE="text/css" HREF="nombredecss.css">
a la <xsl:template que contine la seccion Header de tu HTML
Para mas info en Access visitame
http://www22.brinkster.com/equisbert/
"Alejandro Esteve" wrote in message
news:
> hola...
> tengo un fichero xml con su xsl asociado y quisiera incluirle la hoja


CSS
> ¿cómo se hace en xml?
>
> Alejandro Esteve
> http://www.BibliotecaInformatica.Net
> ftp://ftp.BibliotecaInformatica.Net
>
>


Respuesta Responder a este mensaje
#3 Skar
23/02/2004 - 21:58 | Informe spam
No pero es muy facil, si tienes dudas me avisas:

Para mas info en Access visitame
http://www22.brinkster.com/equisbert/
"Alejandro Esteve" wrote in message
news:%23rc$rwk%
gracias Skar

¿conoces algún enlace que trate sobre el tema CSS/XSML/XSL?

Alejandro Esteve
http://www.BibliotecaInformatica.Net
ftp://ftp.BibliotecaInformatica.Net

"Skar" wrote in message
news:#U90nO$
> dos formas:
> directamente en el documento xml, antes de el nodo root (raiz) aniades
> <?xml-stylesheet type="text/css" href="nombredecss.css"?>
> luego lo abres en tu navegador (ie o netscape) y listo
>
> Segunda forma: en tu XSL (supongo que genera HTML) simplemente le


aniades
> <LINK REL=STYLESHEET TYPE="text/css" HREF="nombredecss.css">
> a la <xsl:template que contine la seccion Header de tu HTML
> Para mas info en Access visitame
> http://www22.brinkster.com/equisbert/
> "Alejandro Esteve" wrote in message
> news:
> > hola...
> > tengo un fichero xml con su xsl asociado y quisiera incluirle la hoja
CSS
> > ¿cómo se hace en xml?
> >
> > Alejandro Esteve
> > http://www.BibliotecaInformatica.Net
> > ftp://ftp.BibliotecaInformatica.Net
> >
> >
>
>


Respuesta Responder a este mensaje
#4 Alejandro Esteve
24/02/2004 - 12:39 | Informe spam
es que sólo me funciona con los enlaces A:hover, visited, etc...
y con BODY {FONT-SIZE: 13px}

el problema es con los elementos individuales, si tengo el esquema XML:

<item>
<title><![CDATA[1.- Página de Terra]]></title>
<enlace>http://www.terra.es</enlace>
<text>Comentario del documento</text>
</item>
...//...

para darle formato CSS a <text> (ya que los otros son un enlace y lo coge)
utilizo en la CSS:

text {FONT-SIZE: 18px}

pero no funciona ?¿
gracias por tu interés
Alejandro Esteve
http://www.BibliotecaInformatica.Net
ftp://ftp.BibliotecaInformatica.Net

"Skar" wrote in message
news:OrMtT$k#
No pero es muy facil, si tienes dudas me avisas:

Para mas info en Access visitame
http://www22.brinkster.com/equisbert/
"Alejandro Esteve" wrote in message
news:%23rc$rwk%
> gracias Skar
>
> ¿conoces algún enlace que trate sobre el tema CSS/XSML/XSL?
>
> Alejandro Esteve
> http://www.BibliotecaInformatica.Net
> ftp://ftp.BibliotecaInformatica.Net
>
> "Skar" wrote in message
> news:#U90nO$
> > dos formas:
> > directamente en el documento xml, antes de el nodo root (raiz) aniades
> > <?xml-stylesheet type="text/css" href="nombredecss.css"?>
> > luego lo abres en tu navegador (ie o netscape) y listo
> >
> > Segunda forma: en tu XSL (supongo que genera HTML) simplemente le
aniades
> > <LINK REL=STYLESHEET TYPE="text/css" HREF="nombredecss.css">
> > a la <xsl:template que contine la seccion Header de tu HTML
> > Para mas info en Access visitame
> > http://www22.brinkster.com/equisbert/
> > "Alejandro Esteve" wrote in message
> > news:
> > > hola...
> > > tengo un fichero xml con su xsl asociado y quisiera incluirle la


hoja
> CSS
> > > ¿cómo se hace en xml?
> > >
> > > Alejandro Esteve
> > > http://www.BibliotecaInformatica.Net
> > > ftp://ftp.BibliotecaInformatica.Net
> > >
> > >
> >
> >
>
>


email Siga el debate Respuesta Responder a este mensaje
Ads by Google
Help Hacer una preguntaRespuesta Tengo una respuesta
Search Busqueda sugerida